Hi, I am using NebulaGL in my web application. I am running into issues when importing NebulaGL (directly or indirectly) in unit testing frameworks which execute code using NodeJS (vitest in particular) because there are imports from sub-paths which are not specified as exports of the corresponding package.
Describe the bug
Hi, I am using NebulaGL in my web application. I am running into issues when importing NebulaGL (directly or indirectly) in unit testing frameworks which execute code using NodeJS (
vitest
in particular) because there are imports from sub-paths which are not specified asexports
of the corresponding package.For example, there are many statements like
https://github.com/uber/nebula.gl/blob/b316c6348f2ddfdf819dd6128438b39c39fa6db7/modules/layers/src/layers/editable-path-layer.ts#L1
These import statements are not valid ESM because the package
@deck.gl/layers
does not specify a value for"./typed"
, which would look something likehttps://github.com/visgl/deck.gl/blob/c51d4376f5d6f5d0e626e22f30e5e8767349a36e/modules/layers/package.json
Actual Result
N/A
Expected Result
Expect imports to be valid, either by changing the imports here in NebulaGL
OR
by DeckGL making the change upstream to include the appropriate
exports
value in theirpackage.json
files.Reproduce Steps
N/A
Screenshots
N/A
To Do List