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

react-map-gl-draw: @turf/difference dependence issue #333

Open
psmaAaron opened this issue Feb 12, 2020 · 2 comments
Open

react-map-gl-draw: @turf/difference dependence issue #333

psmaAaron opened this issue Feb 12, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@psmaAaron
Copy link
Contributor

Describe the bug

When using react-map-gl-draw in an environment that builds with webpack, the version of @turf/difference that is installed alongside react-map-gl-draw fails because of a .mjs file. Issue on @turf/difference.
It seems that reverting back to the previous version fixes the problem.

Actual Result

When building a project with react-map-gl-draw using webpack the following error occurs:
ERROR in ./node_modules/@turf/difference/index.mjs 52:22-35 Can't import the named export 'diff' from non EcmaScript module (only default export is available)

Expected Result

The project compiles successfully

@georgios-uber
Copy link
Contributor

Duplicate of #64 .
find . -name "*.mjs" | xargs rm is a hacky 🔨 solution that solves the problem.

@georgios-uber georgios-uber added the duplicate This issue or pull request already exists label Mar 10, 2020
@lamuertepeluda
Copy link

Any plan of updating compatibility with turf difference 6.0.2? It's a while since it's been around...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants