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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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