fawmi / vue-google-maps

Reactive Vue 3 components for Google maps
https://vue-map.netlify.app
MIT License
197 stars 103 forks source link

Vue 3 - ambiguous indirect export: default #193

Open sergiuwaxmann opened 1 year ago

sergiuwaxmann commented 1 year ago

Hello,

I am trying to use this package in a Vue 3 (Vite) TS application but I have this error: Uncaught SyntaxError: ambiguous indirect export: default

After installing the package (npm install -S @fawmi/vue-google-maps), I added the following to my main.ts file:

import VueGoogleMaps from "@fawmi/vue-google-maps";

app.use(VueGoogleMaps, {
  load: {
    key: "MY_API_KEY",
    libraries: "places"
  }
});

When trying to start the application (npm run dev), I get the error mentioned above in the Console.

Vue: ^3.3.4 Vite: ^4.3.9 TypeScript: ~5.0.4

Dmytro-Tihunov commented 1 year ago

same here ((

CleoMenezesJr commented 1 year ago

Same here

msunay commented 1 year ago

I also get this error

mercExec commented 1 year ago

Have you checked out this issue? #148 I just started using this package and had the same problem and the solution in above mentioned issue worked for me