-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
@Prop not working #130
Comments
I also encountered a related problem, I think it is related to this 。vitejs/vite-plugin-vue#430 |
Hi, thank you for your answer ! |
还有需要使用 toNative |
Yes, it was not forgotten. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I’ve tried a fresh install of vue3 with vue-facing-decorator, but it does not work out of the box. The documentation is lacking informations about how to use babel (so I’m not sure about what I did) ; and the
@Prop
decorator does not work…My fresh install has been made using
npm create vite@latest
and create-vue.Here’s what’s in my package.json :
My vite.config.js :
The
tsconfig.app.json
, in which I’ve only added theexperimentalDecorator
option:The
babel.config.json
:The
App.vue
:and the
MyComponent.vue
:Finally, here’s a screenshot of what I get in the browser :
![image](https://private-user-images.githubusercontent.com/126257729/366485780-6bfbcd99-4b87-4d2b-b220-b09637ac6e57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NDA2MDIsIm5iZiI6MTczOTU0MDMwMiwicGF0aCI6Ii8xMjYyNTc3MjkvMzY2NDg1NzgwLTZiZmJjZDk5LTRiODctNGQyYi1iMjIwLWIwOTYzN2FjNmU1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxMzM4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xN2VjOWJmZWExOWQyNjgxYTEzYTQyMTM0NGFhMTE4N2ZjMjM5ODY1OWQ4MDIyOTkyNzllZDFkZmJmNzgyMTc3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9juNIlltqwP7HixzgOzE_M3EjNRUnCoqUn1a7I-zf6Y)
As you can see, my prop is considered as an attribute, not as a Vue prop…
What am I missing ?
Thank you for your help
The text was updated successfully, but these errors were encountered: