-
I'm trying to use leafletjs which only works on the client.
gives me the following error on build: I'm coming from Nuxt 2 so maybe they do some magic I'm not aware of, but I thought wrapping a component in I've tried some work arounds with no success:
Also why is the build process generating SSR bundles, I thought this was an SSG library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed by doing the import inside onMounted onMounted(async () => { |
Beta Was this translation helpful? Give feedback.
Fixed by doing the import inside onMounted
onMounted(async () => {
Leaflet = await import('leaflet')