-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
The vite property decorator is invalid #13874
Comments
This problem is due to the attribute decorator of https://github.com/Spencer17x/arca/blob/main/packages/awesome-babylonjs/babylonjs-mtoon-material/src/lib/mtoon-material.ts |
|
I tried. It didn't work |
I updated vite to v4.4.4 |
Does not appear to support property decorators? |
|
I've tried, it doesn't work, and my problem is that the attribute decorator is in the ts file, not react |
try vite4.4.4+, it enable decorator compile default |
Now it's vite 4.4.4+, but it still doesn't work |
Now, I have opened a new branch of the code in question: |
If I set If I set Closing as this is not a bug in Vite. |
Describe the bug
When the property decorator is involved in the project, the dev and production modes are different from the webpack effect, and the expected effect is the same as the webpack effect.
Reproduction
https://github.com/Spencer17x/arca/tree/main/packages/awesome-babylonjs/babylonjs-mtoon-material
Steps to reproduce
pnpm install
pnpm run dev
pnpm install
pnpm run debug
This is the effect of vite:
This is the effect of webpack:
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: