Skip to content

Build failed for web app for v4.22 #8584

@davidshen84

Description

@davidshen84

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version: 4.22
  • CUDA/cuDNN version: n/a

Describe the problem

  • create an Angular app
  • add tfjs and use it
  • build the app ng build

There's an build error saying the Buffer class is not available, because it is only available for node app not for web app.

Manually add the Buffer package resolves the error.

Any other info / logs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions