-
-
Notifications
You must be signed in to change notification settings - Fork 51
Using vue-property-decorator and "default" string causes error #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
Also happening for me, but with Vite version |
I can also reproduce this on
Seems to be related to as when moving the |
After updating to [email protected] the issue is gone: @CreMindES This might had fixed it in 2.7.9 according to the changelog: |
Uh oh!
There was an error while loading. Please reload this page.
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: