This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
SyntaxError: import not found: default #62
Labels
bug
Something isn't working
Comments
Thanks for reproduction @thefoxie! Checking error, it has nothing to do with async component imports but vite: {
optimizeDeps: {
exclude: [
'nanoid'
]
}
}
|
I feel really dumb right now 😄 |
i've tried to add optimizeDeps for the package vite: {
optimizeDeps: {
exclude: [
'nuxt-leaflet',
]
}
} |
@danielgroen Can you please help creating a small reproduction so i can debug? (update: #87) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Versions
nuxt-vite: 0.0.21
nuxt: 2.15.2
Reproduction
https://github.com/thefoxie/nuxt-vite-imports-issue
Description
As mentioned already (#59 (comment)), there's issue with imports.
Imported modules/exports in sfc don't work which makes the component not to render when used with components option set to true. The component renders when the import is commented out. I tried to import the component straight and had
SyntaxError: import not found: default
, but the component renders at least.When components option set to true:
The text was updated successfully, but these errors were encountered: