You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get help from the community, check out our Google group.
TensorFlow.js version
0.11.6
Browser version
Version 67.0.3396.87 (Official Build) (64-bit)
Describe the problem or feature request
Tensorflow.js used in an Angular 6 app throws Error:
Uncaught ReferenceError: global is not defined at Object../node_modules/protobufjs/src/util/minimal.js (minimal.js:49) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/src/writer.js (writer.js:4) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/src/index-minimal.js (index-minimal.js:13) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/minimal.js (minimal.js:4) at __webpack_require__ (bootstrap:76) at Object../node_modules/@tensorflow/tfjs-converter/dist-es6/data/compiled_api.js (compiled_api.js:1) at __webpack_require__ (bootstrap:76)
Code to reproduce the bug / link to feature request
To reproduce:
import * as tf from '@tensorflow/tfjs'; ... linearModel: tf.Sequential; ... this.linearModel = tf.sequential();
I have passed through this issue with adding these lines on my index.html head:
<script> if (global === undefined) { var global = window; } </script>
To get help from the community, check out our Google group.
TensorFlow.js version
0.11.6
Browser version
Version 67.0.3396.87 (Official Build) (64-bit)
Describe the problem or feature request
Tensorflow.js used in an Angular 6 app throws Error:
Uncaught ReferenceError: global is not defined at Object../node_modules/protobufjs/src/util/minimal.js (minimal.js:49) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/src/writer.js (writer.js:4) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/src/index-minimal.js (index-minimal.js:13) at __webpack_require__ (bootstrap:76) at Object../node_modules/protobufjs/minimal.js (minimal.js:4) at __webpack_require__ (bootstrap:76) at Object../node_modules/@tensorflow/tfjs-converter/dist-es6/data/compiled_api.js (compiled_api.js:1) at __webpack_require__ (bootstrap:76)
Code to reproduce the bug / link to feature request
To reproduce:
import * as tf from '@tensorflow/tfjs'; ... linearModel: tf.Sequential; ... this.linearModel = tf.sequential();
I have passed through this issue with adding these lines on my index.html head:
<script> if (global === undefined) { var global = window; } </script>
aws-amplify/amplify-js#678
The text was updated successfully, but these errors were encountered: