You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 👋 , strange issue happening only with lang="ts". at line 30 in page/index.vue the export default is considered as part of the component code. It triggers a multiple default warning during static generation.
Current workaround is to avoid typescript by removing lang="ts"
this might be an upstream issue ?
Additional context
No response
Logs
WARN Error when using sourcemap for reporting an error: Can't resolve original location of error. 15:25:34
ERROR Duplicate export 'default' (Note that you need plugins to import files that are not JavaScript) 15:25:34
file: /home/projects/nuxt-starter-563znx/pages/index.vue?macro=true&vue&type=script&setup=true&lang.ts:27:7
25: });
26:
27: export default {}
^
28: export const meta = {
29: layout: "default"
ERROR Duplicate export 'default' (Note that you need plugins to import files that are not JavaScript) 15:25:34
at error (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:1888:30)
at error (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12459:16)
at tryParse (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12836:25)
at setSource (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12741:24)
at addModuleSource (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:22183:20)
at ()
The text was updated successfully, but these errors were encountered:
Environment
Linux
v16.15.0
3.0.0-rc.11
0.5.4
yarn@3.2.3
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-563znx?file=pages%2Findex.vue
Describe the bug
Hi 👋 , strange issue happening only with lang="ts". at line 30 in page/index.vue the export default is considered as part of the component code. It triggers a multiple default warning during static generation.
Current workaround is to avoid typescript by removing lang="ts"
this might be an upstream issue ?
Additional context
No response
Logs
WARN Error when using sourcemap for reporting an error: Can't resolve original location of error. 15:25:34
ERROR Duplicate export 'default' (Note that you need plugins to import files that are not JavaScript) 15:25:34
file: /home/projects/nuxt-starter-563znx/pages/index.vue?macro=true&vue&type=script&setup=true&lang.ts:27:7
25: });
26:
27: export default {}
^
28: export const meta = {
29: layout: "default"
ERROR Duplicate export 'default' (Note that you need plugins to import files that are not JavaScript) 15:25:34
at error (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:1888:30)
at error (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12459:16)
at tryParse (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12836:25)
at setSource (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:12741:24)
at addModuleSource (node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:22183:20)
at ()
The text was updated successfully, but these errors were encountered: