Open MrBlaise opened 6 years ago
hello, i would like to know when will it be fixed? Angular app crash for this warning
core.js:1449 ERROR Error: Uncaught (in promise): ReferenceError: global is not defined ReferenceError: global is not defined at Object../node_modules/braintree-web/lib/promise.js (promise.js:3) at __webpack_require__ (bootstrap:81) at Object../node_modules/braintree-web/american-express/american-express.js (american-express.js:6)
thank you
Please post an update on when will it be fixed ?
Any updates here? It breaks Angular 6 projects.
We fixed this in braintree-web by providing a browserified version in our npm package, noted in the browser
key in the package.json.
Anyone using sjcl directly though will still experience this issue.
I was redirected here from https://github.com/braintree/braintree-web/issues/366 braintree-web uses sjcl, however since the latest release of Angular it doesn't support shims for crypto and other node native things. This causes a warning during compilation.
This should not create a warning in a browser where there is no crypto library.