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
Uncaught TypeError: Failed to resolve module specifier "tslib". Relative references must start with either "/", "./", or "../".
map-interface is exported as ESM module, so theoretically it allows me to use it without a bundler, however @mapgrab/map-interface/index.esm.js imports dependencies like the tslib explicitly. In other words: dependencies are not pre-bundled.
To get it work I had to use JSPM Generator to generate import maps:
Hi,
thanks for your work on this project!
I wanted to try out MapGrab to write tests for https://github.com/falseinput/geogrid-maplibre-gl, but when I imported
the map interface via script tag I got:
map-interface is exported as ESM module, so theoretically it allows me to use it without a bundler, however
@mapgrab/map-interface/index.esm.js
imports dependencies like thetslib
explicitly. In other words: dependencies are not pre-bundled.To get it work I had to use JSPM Generator to generate import maps:
While this works, I had spend some time trying to figure it out. The way import maps work or the fact they exist is not yet well known in general.
Pre-bundling this package would be great, because it would just allow to import as a module without extra steps.
Btw. I was trying to make a PR, but map-interface is a submodule and I could not clone it.
The text was updated successfully, but these errors were encountered: