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
I'm experiencing a strange issue.
Whenever I use default as class prop or even as a string like defaultSomething in a JS-comment in my .vue-files, the following error shows up:
Error:
10:57:46 AM [vite] Internal server error: Cannot overwrite across a split point
Plugin: vite:vue2
File: app/src/components/Form/FormStepProgress.vue
at MagicString.overwrite (\app\node_modules\@vue\compiler-sfc\dist\compiler-sfc.js:2362:11)
at \app\node_modules\@vue\compiler-sfc\dist\compiler-sfc.js:8182:15
at Array.forEach (<anonymous>)
at Object.rewriteDefault (\app\node_modules\@vue\compiler-sfc\dist\compiler-sfc.js:8180:9)
at genScriptCode (\app\node_modules\@vitejs\plugin-vue2\dist\index.cjs:2993:37)
at transformMain (\app\node_modules\@vitejs\plugin-vue2\dist\index.cjs:2911:54)
at TransformContext.transform (\app\node_modules\@vitejs\plugin-vue2\dist\index.cjs:3248:16)
at Object.transform (file:///app/node_modules/vite/dist/node/chunks/dep-1513d487.js:35277:53)
at async loadAndTransform (file:///app/node_modules/vite/dist/node/chunks/dep-1513d487.js:39776:29)
I assume that this line is causing the error: at genScriptCode (\app\node_modules\@vitejs\plugin-vue2\dist\index.cjs:2993:37)
Code scriptCode = options.compiler.rewriteDefault(script.content, "_sfc_main", [...defaultPlugins, ...userPlugins]);
The text was updated successfully, but these errors were encountered:
Hi,
I'm experiencing a strange issue.
Whenever I use
default
as class prop or even as a string likedefaultSomething
in a JS-comment in my .vue-files, the following error shows up:Error:
Deps:
on Windows@11
Update
DEMO: https://stackblitz.com/edit/vue2-vite-starter-gkrjjz?file=src/components/Test.vue
Exporting an interface in combination with the string 'defaultXXX' inside a comment shows the error.
I assume that this line is causing the error:
at genScriptCode (\app\node_modules\@vitejs\plugin-vue2\dist\index.cjs:2993:37)
Code
scriptCode = options.compiler.rewriteDefault(script.content, "_sfc_main", [...defaultPlugins, ...userPlugins]);
The text was updated successfully, but these errors were encountered: