Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: @gmap-vue/v3/composables package throws an exception #329

Open
5 tasks
hmalinie opened this issue May 22, 2024 · 0 comments
Open
5 tasks

Bug: @gmap-vue/v3/composables package throws an exception #329

hmalinie opened this issue May 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hmalinie
Copy link

hmalinie commented May 22, 2024

Describe the bug

A clear and concise description of what the bug is.

On a nuxt 3 project, importing @gmap-vue/v3/composables package throws an exception.

To reproduce

https://codesandbox.io/p/devbox/hopeful-shape-vk4cj9?file=%2Fapp.vue%3A7%2C1

Expected behavior

No exception.

Current behavior

The exception :

[nuxt] [request error] [unhandled] [500] The requested module './keys.es.js' does not provide an export named '$circleShapePromise'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)  
  at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)  
  at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)  
  at async ViteNodeRunner.interopedImport (./node_modules/vite-node/dist/client.mjs:383:28)  
  at async ViteNodeRunner.directRequest (./node_modules/vite-node/dist/client.mjs:253:24)  
  at async ViteNodeRunner.cachedRequest (./node_modules/vite-node/dist/client.mjs:189:14)  
  at async ViteNodeRunner.dependencyRequest (./node_modules/vite-node/dist/client.mjs:233:12)  
  at async ./@gmap-vue/v3/composables:1:31  
  at async ViteNodeRunner.runModule (./node_modules/vite-node/dist/client.mjs:362:5)  
  at async ViteNodeRunner.directRequest (./node_modules/vite-node/dist/client.mjs:346:5)

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information)

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Dynamic frontend import is working correctly :

onMounted(async () => {
  const { useGoogleMapsApiPromiseLazy } = await import("@gmap-vue/v3/composables");
  const google = await useGoogleMapsApiPromiseLazy();
  console.log(google);
});

Versions

  • Node:
  • NPM:
  • Yarn:

Package manager

  • NPM
  • Yarn

Plugin version

  • 1.4.x
  • 1.2.x
  • 1.0.x
@hmalinie hmalinie added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant