-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Using Class Components without @Options
annotation leads to "Transform failed"
#2787
Closed
6 tasks done
Comments
@cypressious would you try to reproduce this without Vite? I think this is an issue with the Vue SFC compiler and it should be reported in the vue-next repo. |
@patak-js I just tried and it works with vue-cli. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
According to vuejs/vue-class-component#406, when using Class Components with Vue 3, the
@Options
annotation is optional.However, when leaving the annotation out, vite throws the following error:
Reproduction
vue-class-component@8.0.0-rc.1
dependencySystem Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: