-
Notifications
You must be signed in to change notification settings - Fork 3
global is not defined #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
According to angular/angular-cli#8160 (comment): adding the following polyfills.ts should work in Angular@6: // Add global to window, assigning the value of window itself. So add this on my index.html <script>window.global = window;</script>Or better, add this, on your polyfills.ts |
This is duplicate of #2 |
I will try to make it at this weekends |
Just install this package because the ng-socket-io is not working.. this actually pass the first issue with ng-socket-io, but now I'm stuck with this :(
Uncaught ReferenceError: global is not defined
at Object../node_modules/socket.io-parser/is-buffer.js (is-buffer.js:4)
at webpack_require (bootstrap:83)
at Object../node_modules/socket.io-parser/binary.js (binary.js:8)
at webpack_require (bootstrap:83)
at Object../node_modules/socket.io-parser/index.js (index.js:8)
at webpack_require (bootstrap:83)
at Object../node_modules/socket.io-client/lib/index.js (index.js:7)
at webpack_require (bootstrap:83)
at Module../node_modules/ng-io/fesm5/ng-io.js (ng-io.js:1)
at webpack_require (bootstrap:83)
The text was updated successfully, but these errors were encountered: