Bundling @turf/convex with Webpack not working due to concaveman dependency
See original GitHub issue@turf/concave is erroring with Queue is not a constructor
due to a longstanding issue with one of the dependencies:
https://github.com/mapbox/concaveman/issues/18
https://github.com/Turfjs/turf/blob/master/packages/turf-convex/package.json#L62
"@turf/convex": "^6.5.0",
const points = featureCollection([
point([10.195312, 43.755225]),
point([10.404052, 43.8424511]),
point([10.579833, 43.659924]),
point([10.360107, 43.516688]),
point([10.14038, 43.588348]),
point([10.195312, 43.755225]),
]);
convex(points);
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (2 by maintainers)
Top Results From Across the Web
rbush is not a constructor_多比熊的博客
Bundling @turf/convex with Webpack not working due to concaveman dependency 原因依赖包的rbush版本不同导致暂时的解决方案是通过手动指定一个包 ...
Read more >pnpm-lock.yaml · gyy/vue-amap - Gitee.com
vuemap/vue-amap是一套基于Vue和高德地图2.0的地图组件,vue2对应0.0.x版本,vue3对应1.0.x版本.
Read more >Licenses - Ecolands
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,...
Read more >Central Repository: org/webjars/npm
... angular-loading-overlay-http-interceptor/ ... aws-sdk__service-error-classification/ ... granite-elements__granite-js-dependencies-gr.
Read more >Index of libs-release/org/webjars/npm - artifactory - Cronapp
... angular-devkit__build-webpack/-> - - angular-devkit__core/-> ... assertion-error/ 05-Jan-2022 05:04 - assertion-error-formatter/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released
concaveman
v1.2.1 with the fix, hope that helps.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
rbush
at version 3.0.1 which is an ESM module which we can’t use in turf at the moment because there is no transpiliation step. The potential solutions are:@turf/jsts
or@turf/geojson-rbush
rbush
is exposed underrbush/rbush
(big ask)