-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Uncaught ReferenceError: global is not defined #2141
Comments
Got this too after resolving #1271. |
It seems slightly related to the aforementioned bug. Temporary hack around seems to be (from StackOverflow) to add something like this to your polyfils.ts
https://stackoverflow.com/questions/50264344/aws-sdk-crash-after-updating-from-angular5-to-angular6 Perhaps they changed their polyfills or similar in Angular6 to not include global for you. If indeed you are using Angular 6 as I am. |
I apologize we didn't get back to you on this issue. Are you still encountering this issue? Can you provide additional details if it is still happening for you? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
@jayeshsheta in my case i had to add:
to |
worked |
yo tenia este error y era porque tenia mal importado el httpClientModule, luego de corregirlo el error desaparecio. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
ncaught ReferenceError: global is not defined
at Object../node_modules/buffer/index.js (index.js:43)
at webpack_require (bootstrap:76)
at Object../node_modules/aws-sdk/lib/browserHashUtils.js (browserHashUtils.js:1)
at webpack_require (bootstrap:76)
at Object../node_modules/aws-sdk/lib/browserHmac.js (browserHmac.js:1)
at webpack_require (bootstrap:76)
at Object../node_modules/aws-sdk/lib/browserCryptoLib.js (browserCryptoLib.js:1)
at webpack_require (bootstrap:76)
at Object../node_modules/aws-sdk/lib/browser_loader.js (browser_loader.js:4)
at webpack_require (bootstrap:76)
./node_modules/buffer/index.js @ index.js:43
webpack_require @ bootstrap:76
./node_modules/aws-sdk/lib/browserHashUtils.js @ browserHashUtils.js:1
webpack_require @ bootstrap:76
./node_modules/aws-sdk/lib/browserHmac.js @ browserHmac.js:1
webpack_require @ bootstrap:76
./node_modules/aws-sdk/lib/browserCryptoLib.js @ browserCryptoLib.js:1
webpack_require @ bootstrap:76
./node_modules/aws-sdk/lib/browser_loader.js @ browser_loader.js:4
webpack_require @ bootstrap:76
./node_modules/aws-sdk/clients/s3.js @ s3.js:1
webpack_require @ bootstrap:76
./src/app/system-service/upload-file.service.ts @ system-service.service.ts:9
webpack_require @ bootstrap:76
./src/app/components/form-upload/form-upload.component.ts @ main.js:852
webpack_require @ bootstrap:76
./src/app/components/system.module.ts @ system-routing.module.ts:19
webpack_require @ bootstrap:76
./src/app/app.module.ts @ app.component.ts:8
webpack_require @ bootstrap:76
./src/main.ts @ environment.ts:15
webpack_require @ bootstrap:76
0 @ main.ts:12
webpack_require @ bootstrap:76
checkDeferredModules @ bootstrap:43
webpackJsonpCallback @ bootstrap:30
(anonymous) @ main.js:1
The text was updated successfully, but these errors were encountered: