question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mournercommented, Aug 9, 2021

Released concaveman v1.2.1 with the fix, hope that helps.

1reaction
JamesLMilnercommented, Dec 5, 2021

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:

  • Vendor concaveman (not a huge fan of this for obvious reasons)
  • Create a separate module as per @turf/jsts or @turf/geojson-rbush
  • Kindly request concaveman uses the ES5 rbush (big ask, potentially not compatible with the maintainers needs)
  • Kindly request concaveman publishes an ES5 version, similar to how rbush is exposed under rbush/rbush (big ask)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found