Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.5k
Labels
Description
Environment
- Operating System:
Darwin - Node Version:
v22.14.0 - Nuxt Version:
4.1.3 - CLI Version:
3.29.3 - Nitro Version:
2.12.7 - Package Manager:
npm@10.9.2 - Builder:
- - User Config:
compatibilityDate,devtools - Runtime Modules:
- - Build Modules:
-
Reproduction
https://stackblitz.com/edit/github-octwj7fv?file=app%2Fapp.vue,app%2Fcomposables%2Fuse-key.ts
Describe the bug
Let's use an auto-imported composable as an example.
exportdefaultfunction(){return'use-key-default'}
if we change it to a named exportwhile the dev server is running
exportfunctionuseKey(){return'use-key-named'}
the server crashes with the following error message

Additional context
No response