Angular 9 Missing global reference
@mfedderly is already working on this.
Since Aug 2, 2021.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 1k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
Please provide the following when reporting an issue:
when adding @turf as a part of a Angular 9 project we get the following error.
errors.ts:30 ERROR Error: Uncaught (in promise): ReferenceError: global is not defined
ReferenceError: global is not defined
at Object../node_modules/has-symbols/index.js (index.js:3)
at __webpack_require__ (bootstrap:84)
at Object../node_modules/es-abstract/GetIntrinsic.js (GetIntrinsic.js:39)
at __webpack_require__ (bootstrap:84)
at Object../node_modules/es-abstract/helpers/callBind.js (callBind.js:5)
at __webpack_require__ (bootstrap:84)
at Object../node_modules/object-is/index.js (index.js:4)
at __webpack_require__ (bootstrap:84)
at Object../node_modules/deep-equal/index.js (index.js:3)
at __webpack_require__ (bootstrap:84)
at Object../node_modules/geojson-equality/index.js (index.js:2)
at __webpack_require__ (bootstrap:84)
at Module../node_modules/@turf/boolean-overlap/main.es.js (main.es.js:1)
at __webpack_require__ (bootstrap:84)
at Module../node_modules/@turf/turf/index.js (index.js:1)
at resolvePromise (zone-evergreen.js:798) [angular]
at resolvePromise (zone-evergreen.js:750) [angular]
at :4200/polyfills.7b850002e03099b08e07.js:920:21 [angular]
at Object.onInvokeTask (ng_zone.ts:293) [angular]
at drainMicroTaskQueue (zone-evergreen.js:569) [<root>]
this is because Angular is not providing a global variable anymore
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.