-
Notifications
You must be signed in to change notification settings - Fork 90
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
Uncaught (in promise) SyntaxError: import not found: default #383
Comments
I have the same issue. |
Same issue here as well. Also with Nuxt 3. Full error here: |
any changes? who can fix it? I have this issue in vue 3
|
Any updates? |
How can i help to somebody fix this? |
@websitevirtuoso @chaule97 Here's a fix for you guys In your
The issue is because the dependency Vite being an esm only tool requires extra config to process cjs packages. |
We know how to fix it. but them problem that this is patch. It should be applied in the lib. We just need to wait while fast-dee-equal lib will have ESM version |
This problem also happens if one is importing MarkerClusterer in vanilla js and without using Nuxt. For example I'm trying to import it in my script using a relative path to my node_modules folder like this:
And I get this error in browser console:
It's annoying and wasted couple of hours of my time! |
Hi, I had read your note.
I have a problem when I used both @googlemaps/markerclusterer and nuxt 3, and I don't know where the error comes from.
When I write
import { MarkerClusterer } from "@googlemaps/markerclusterer";
then browser show error:Uncaught (in promise) SyntaxError: import not found: default [index.esm.js:2:7]
the bug in the line of code:
import equal from '/_nuxt/node_modules/fast-deep-equal/index.js?v=fafab82c';
Thanks for reading.
The text was updated successfully, but these errors were encountered: