-
Notifications
You must be signed in to change notification settings - Fork 943
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
Bundling @turf/convex with Webpack not working due to concaveman dependency #2191
Comments
Hi @braco, yes unfortunately this is a known issue on the concaveman project which effects us downstream. I believe the underlying issue is actually a problem with Webpack itself (mapbox/concaveman#18 (comment)). I wrote a response in that thread that explains how to circumvent it short term if you're using Webpack. |
Thanks @JamesLMilner. I think that's a yarn only fix , without npm-force-resolutions or overrides? I switched to hull.js, which has been a much simpler fix. |
Released |
@mourner thanks! Appreciate that it wasn't the solution you were looking to resolve it with. Hope things go well with the ES rewrite. I will look at raising a PR to use |
Hey guys, just to make clear, would this be an issue on Regardless, I don't see any issue with either modules, at least not with the doc's example reported by @braco: https://turf-sandbox.netlify.app/?gist=85c24aba86193f3542ae1493d90e986d |
I think the title/text should be |
Still, I don't see the reported error. @braco can you please post a code snippet reproducing the error? |
@stebogit you would only see it if you were bundling with Webpack I think, as it's a specific issue between |
Okay update here following closing #2200 and #2200 Unfortunately we can't upgrade to concaveman 1.2.1 which fixes the issues with Queue/rbush because
|
Can you expand more on this? I thought Turf transpiled/bundled all dependencies, but I'm not sure how it all works in a TS ecosystem. Generally, I would love to move more of my libraries to ESM-only ES6 entry point without transpilation, leaving the ES5 transpilation on downstream users if they need legacy compatibility. |
@turf/convex now incorporates the fixed 1.2.1 version of concaveman. |
@turf/concave is erroring with
Queue is not a constructor
due to a longstanding issue with one of the dependencies:mapbox/concaveman#18
https://github.com/Turfjs/turf/blob/master/packages/turf-convex/package.json#L62
The text was updated successfully, but these errors were encountered: