You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using deck.gl with @loaders.gl/mvt for an internal app, in an offline/airgapped environment. Browsers are not connected to the internet and can't load the worker bundle from unpkg.com.
I used to import the worker bundle with a custom webpack config and the following statement :
With @loaders.gl/mvt v4.2.2, I'm encountering this error :
Module not found: Error: Package path ./dist/mvt-worker.js is not exported from package <appDir>/frontend/node_modules/@loaders.gl/mvt (see exports field in <appDir>/frontend/node_modules/@loaders.gl/mvt/package.json)
A workaround is to import the file via relative import
I'm using deck.gl with
@loaders.gl/mvt
for an internal app, in an offline/airgapped environment. Browsers are not connected to the internet and can't load the worker bundle from unpkg.com.I used to import the worker bundle with a custom webpack config and the following statement :
For reference, here's a similar implementation with vite (no special config) :
With
@loaders.gl/mvt
v4.2.2, I'm encountering this error :A workaround is to import the file via relative import
I guess a solution would be to include the bundled worker.js file in the
package.json#exports
field:I'm currently having this issue with
@loaders.gl/mvt
because that's the one I'm using, but AFAIK, this issue should affect all other loaders.The text was updated successfully, but these errors were encountered: