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
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
Describe the problem
ng buildThere's an build error saying the
Bufferclass is not available, because it is only available for node app not for web app.Manually add the
Bufferpackage resolves the error.Any other info / logs
npm i && ng buildshould worknpm uni buffer && ng buildshould fail