Skip to content

Vue 3 - ambiguous indirect export: defaultΒ #193

@sergiuwaxmann

Description

@sergiuwaxmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions