Skip to content
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

Angular 9 Missing global reference #1899

Open
dartdl opened this issue May 7, 2020 · 4 comments
Open

Angular 9 Missing global reference #1899

dartdl opened this issue May 7, 2020 · 4 comments
Assignees
Labels
operations Things relating to CI, npm releases etc @turf/boolean-overlap

Comments

@dartdl
Copy link

dartdl commented May 7, 2020

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

@rowanwins
Copy link
Member

Which version of turf are you using?

@mistic100
Copy link

This concerns any version using geojson-equality.
See inspect-js/has-symbols#11

@mfedderly mfedderly self-assigned this Aug 2, 2021
@mfedderly
Copy link
Collaborator

We can probably bump geojson-equality's deep-equal dependency to ^2.0.5

@mfedderly mfedderly added @turf/boolean-overlap operations Things relating to CI, npm releases etc labels Aug 3, 2021
@bttb
Copy link

bttb commented Jan 25, 2022

Any solution for this? We have the same problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operations Things relating to CI, npm releases etc @turf/boolean-overlap
Projects
None yet
Development

No branches or pull requests

5 participants