equinor / webviz-subsurface-components

Custom subsurface visualizations for use in Webviz and/or Dash.
https://github.com/orgs/equinor/projects/24
Mozilla Public License 2.0
33 stars 38 forks source link

[BUG] No matching exports in dependencies for `meta` and `PickInfo` #1472

Open rubenthoms opened 1 year ago

rubenthoms commented 1 year ago
✘ [ERROR] No matching export in "node_modules/@turf/meta/dist/es/index.js" for import "default"

    node_modules/@webviz/subsurface-components/dist/components/SubsurfaceViewer/utils/measurement.js:2:7:
      2 │ import meta from "@turf/meta";
        ╵        ~~~~

✘ [ERROR] No matching export in "node_modules/deck.gl/dist/esm/index.js" for import "PickInfo"

    node_modules/@webviz/subsurface-components/dist/index.js:22:9:
      22 │ import { PickInfo, View } from "deck.gl";

This is a bug that I already faced when trying to consume the package in a Webpack project. It seems the dependencies (deck.gl and @ turf) have changed such that the reexports are no longer valid. This is a hidden bug since the files the reexports happen in are pure JS.

rubenthoms commented 1 year ago

@hkfb @nilscb I would appreciate if one of you could take a look at this.