Error when deploying to Vercel #120
Unanswered
marcdsdavid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if anyone can help me with this as it is a bit specific.
I get the error above when deploying to Vercel but works fine locally.
The cause of this is the import of the map:
import 'jsvectormap/dist/maps/world'I am using typescript and sveltekit with vite so I had to create a rough interface to be able to import jsvectormap which looks like this.
and this is my import on my main +page.svelte
Maybe someone knows how to fix this, probably a vite config I am missing
Beta Was this translation helpful? Give feedback.
All reactions