-
Notifications
You must be signed in to change notification settings - Fork 14
Import module error from Javascript #248
Copy link
Copy link
Open
Description
Import module error
Running jsfiddle.net from link in https://www.jsdelivr.com/package/npm/@geoblocks/ol-maplibre-layer returns an error message pointing to maplibre-gl library missing an export named 'Map'. I have the same problem running from Javascript.
Success importing maplibre-gl module
But with instruction [ import "https://cdn.jsdelivr.net/npm/maplibre-gl@4.7.1/dist/maplibre-gl.js"; ], instruction [ new maplibregl.Map() ] returns a map.
jsFiddle.net instructions
import * as geoblocksolMaplibreLayer from 'https://esm.run/@geoblocks/ol-maplibre-layer';
Console log message
"Uncaught SyntaxError: The requested module '/npm/maplibre-gl@4.7.1/+esm' does not provide an export named 'Map'"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels