-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibreMap breaks histoire #742
Labels
to triage
This issue needs to be triaged
Comments
Start a new pull request in StackBlitz Codeflow. |
I changed my histoire.setup.ts ( import './routes/styles.css';
window.doesNotExist = "asdf";
window.URL.createObjectURL = () => { }; And edited the crashing maplibre code: if (typeof window !== 'undefined') {
console.log(window.doesNotExist) // mine
maplibregl.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], { type: 'text/javascript' }));
} And i actually get this output:
So this just makes it even weirder for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: