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
Using LibreMap in a story makes the collection fail. Note that adding the libremap component while the story is running, DOES work.
Error while collecting story /home/projects/histoire-svelte3-starter/src/MapLibre.story.svelte:
TypeError: window.URL.createObjectURL is not a function
at define (/home/projects/histoire-svelte3-starter/node_modules/maplibre-gl/dist/maplibre-gl.js:34:44)
at eval (/home/projects/histoire-svelte3-starter/node_modules/maplibre-gl/dist/maplibre-gl.js:46:1)
at eval (/home/projects/histoire-svelte3-starter/node_modules/maplibre-gl/dist/maplibre-gl.js:6:81)
at eval (/home/projects/histoire-svelte3-starter/node_modules/maplibre-gl/dist/maplibre-gl.js:9:3)
at ViteNodeRunner.runModule (file:///home/projects/histoire-svelte3-starter/node_modules/vite-node/dist/client.mjs:359:11)
at ViteNodeRunner.directRequest (file:///home/projects/histoire-svelte3-starter/node_modules/vite-node/dist/client.mjs:343:16)
at async ViteNodeRunner.cachedRequest (file:///home/projects/histoire-svelte3-starter/node_modules/vite-node/dist/client.mjs:206:14)
at async ViteNodeRunner.dependencyRequest (file:///home/projects/histoire-svelte3-starter/node_modules/vite-node/dist/client.mjs:240:12)
at async eval (/home/projects/histoire-svelte3-starter/node_modules/svelte-maplibre/dist/AttributionControl.svelte:5:31)
at async ViteNodeRunner.runModule (file:///home/projects/histoire-svelte3-starter/node_modules/vite-node/dist/client.mjs:359:5)
Describe the bug
Using LibreMap in a story makes the collection fail. Note that adding the libremap component while the story is running, DOES work.
Reproduction
https://stackblitz.com/edit/histoire-svelte3-starter-91tfys?file=src%2FMapLibre.story.svelte
This is the most relevant info i found, but I could not get it to work: https://devpress.csdn.net/react/6304db157e6682346619cf34.html
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: