Closed kylelamoreaux closed 5 months ago
Hey @kylelamoreaux
Which version are you using and can you provide a minimal reproduction?
Hey @kylelamoreaux
Which version are you using and can you provide a minimal reproduction?
I think the error happens when Vite builds for SSR
This is the same issue as #188 . The workaround for now is to add the following to your vite.config.js
ssr: {
noExternal: ['vue3-google-map']
}
Closing this issue to keep the discussion in one place. Will hopefully release a fix in the coming days.
Fixed in v0.20.0
Unable to build in Vite.
`build error: file:///workspaces/ad-landing/docs/.vitepress/.temp/app.js:8 import { GoogleMap, Marker, InfoWindow } from "vue3-google-map"; ^^^^^^^^^ SyntaxError: Named export 'GoogleMap' not found. The requested module 'vue3-google-map' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:
import pkg from 'vue3-google-map'; const { GoogleMap, Marker, InfoWindow } = pkg;