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
09:06:18 [vite] Internal server error: Transform failed with 1 error:
C:/cygwin64/home/PC/jacekkarczmarczyk/issues/my-vue-app/src/components/NotWorking.vue:18:7: error: Multiple exports with the same name "default"
Plugin: vite:vue
File: C:/cygwin64/home/PC/jacekkarczmarczyk/issues/my-vue-app/src/components/NotWorking.vue
Multiple exports with the same name "default"
16 | })
17 | import _export_sfc from 'plugin-vue:export-helper'
18 |export default /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"C:/cygwin64/home/PC/jacekkarczmarczyk/issues/my-vue-app/src/components/NotWorking.vue"]])| ^
at failureErrorWithLog (C:\cygwin64\home\PC\jacekkarczmarczyk\issues\my-vue-app\node_modules\esbuild\lib\main.js:1493:15)
at C:\cygwin64\home\PC\jacekkarczmarczyk\issues\my-vue-app\node_modules\esbuild\lib\main.js:1282:29
at C:\cygwin64\home\PC\jacekkarczmarczyk\issues\my-vue-app\node_modules\esbuild\lib\main.js:629:9
at handleIncomingPacket (C:\cygwin64\home\PC\jacekkarczmarczyk\issues\my-vue-app\node_modules\esbuild\lib\main.js:726:9)
at Socket.readFromStdout (C:\cygwin64\home\PC\jacekkarczmarczyk\issues\my-vue-app\node_modules\esbuild\lib\main.js:596:7)
at Socket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
I don't have any errors when building with 2.9.0-beta.10 (or even in 2.8.latest), but maybe there is some other problem with this that I'm not aware of?
Describe the bug
Following code doesn't work with vite, it's a valid js/ts syntax and it works fine in vue cli
Workaround 1:
Workaround 2 (plain ts file):
Reproduction
https://github.com/jacekkarczmarczyk/vite-exports-issue
Run
yarn dev
oryarn build
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: