uber / nebula.gl

A suite of 3D-enabled data editing overlays, suitable for deck.gl
https://nebula.gl/
Other
692 stars 165 forks source link

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

Open psmaAaron opened 4 years ago

psmaAaron commented 4 years ago

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 commented 4 years ago

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

lamuertepeluda commented 4 years ago

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