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
Turf does not work with Webpack 4 #1383
Comments
A super hacky workaround is to delete the |
I've republished Ideally, we should refactor |
@adamduren Can you try out |
After uninstalling and installing the affected package |
Could we get a similar fix for
|
I am getting the same issue as @danwoods when trying to use |
I am also getting same issue with |
Same here with |
Also having issues with the intersects. Will this be fixed soon? |
@rowanwins I think I see you cutting releases for some modules in 4ffeabb etc, could you also please cut releases for all other modules? Or perhaps @DenisCarriere can you push your commit out as a release? |
Hi @drnic Yep I'm just looking at it now - just trying to work out if the work has been done and needs publishing or if there is any outstanding work required... Stay tuned |
Hi @drnic I've just republished If you could let me know any specific combos your experiencing issues with that would be good |
@rowanwins awesome, works a treat; thanks! |
Hi @codeofsumit What version failed for you? For the timebeing the v6.x series should be considered alpha so stick with the v6.x series of you encounter issues. We've unfortunately been have some issues with publishing and converting to typescript so things are a bit messy at the moment sorry |
@rowanwins I tried the last two 6.x releases on npm. Works fine with Webpack 3 but when I upgrade, the build fails and throws this error. |
Hi @codeofsumit Doing a bit of googling it looks like you can try and add this sort of rule to your webpack config
If you google |
Hey @rowanwins, thanks for the hint. Will try it. |
FYI: I was getting this error with @turf/difference v6.02 - I think it was fixed in 6.0.1 but was re-introduced with 6.0.2: b032dfc#diff-149d2d8dd8ee68dc060406b560ff202e |
Experiencing the same issue in a VueJS application with @turf/difference 6.0.2. |
Downgrading from @turf/difference v6.0.2 to v6.0.1 worked for me. I deleted my node_modules folder to make sure no old files hung around. |
Using create-react-app, deck.gl, nebula.gl and downgrading to 6.0.1 also worked. |
Hi everyone, I was getting the same error as you guys, so I downgraded @turf/difference to v6.0.1. Now I am getting this error and I have absolutely no clue on how to solve it :
I am simply using deck.gl, react-map-gl and nebula.gl, here are my packages versions If you could guide me to a solution it'd be awesome. It must be a simple fix so sorry in advance for the inconvenience, I'm quite new to this. I will provide additional information if needed. Thanks ! |
I just ended up using a different npm library: `haversine`
|
Would it be possible to remove the |
I upgraded my project to Angular 6 which migrated to Webpack 4. I have a dependency on
mapbox
which uses turf. After the upgrade I started getting build errors like the following.It appears to be failing because
@turf/meta
usesmjs
and@turf/helpers
is a nonmjs
module. I am not sure if this is just a build configuration in Webpack that needs to be tweaked or if a correction needs to be made to turf. I looked around the Webpack issues and didn't really see anything to help along with a fix.Here is a repo to easily reproduce this issue.
https://github.com/adamduren/webpack4-turf-issue
The text was updated successfully, but these errors were encountered: