Closed abdurrahmanseyidoglu closed 3 months ago
I'd say SSR was never a focus for this library and in any case you can only load the Google script on the client as far as I can tell. I'd say wrap your map with an async component or use whatever mechanism your framework provides to ensure your map is only loaded client side.
Hi
As a workaround you can add this to your vite.config.js
.
ssr: {
noExternal: ['vue3-google-map']
}
I'll hopefully release a fix for this in the coming days.
Is there an update on this issue? I'm seeing the same problem and would like to avoid the workarround if possible.
Fixed in v0.20.0
I'm trying to use it inside Vue3 SSR with inertia but I'm getting the following error on build
this error only happens when building the application for SSR.