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
ERROR Failed to compile with 1 error 7:28:01 PM
error in ./src/js/App.vue?vue&type=script&lang=js&
Syntax Error: Identifier '__sfc_main' has already been declared. (19:6)
17 | Old
18 | }, __sfc_main.components);
> 19 | const __sfc_main = __sfc_main;
| ^
20 | export default __sfc_main;
21 |
This bug recurs when placing the Vue2ScriptSetupPlugin plugin in front of the VueLoaderPlugin, Maybe some additional documentation is needed
But the above case is not a percentage recurrence, you remove the /* unlock comment */ from App.vue and the error will not be reported. Is this also a bug? As far as I can see, when transformScriptSetup is processed, the problem is that the ParsedSFC object does not contain scriptSetup but script
a minimal reproduction
https://github.com/JaxXu/sugartake2try
intro
This bug recurs when placing the
Vue2ScriptSetupPlugin
plugin in front of theVueLoaderPlugin
, Maybe some additional documentation is neededBut the above case is not a percentage recurrence, you remove the
/* unlock comment */
from App.vue and the error will not be reported. Is this also a bug? As far as I can see, when transformScriptSetup is processed, the problem is that the ParsedSFC object does not contain scriptSetup but scripterror
normal
The text was updated successfully, but these errors were encountered: