Skip to content
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

not support parameter decorators #105

Open
jkhuangfu opened this issue Feb 4, 2024 · 5 comments
Open

not support parameter decorators #105

jkhuangfu opened this issue Feb 4, 2024 · 5 comments

Comments

@jkhuangfu
Copy link

use vite-plugin-node + nestjs and tsconfig has set "experimentalDecorators": true

when i run my app ,it say ”Parameter decorators only work when experimental decorators are enabled“
1707040342432

@jkhuangfu
Copy link
Author

this is my vite config
image

@Eldow
Copy link

Eldow commented Feb 20, 2024

I faced the same error using vite > 5, it works with vite ~4.

@AmirAlOmari
Copy link

AmirAlOmari commented Mar 27, 2024

Faced the same, thanks @Eldow for the tip.
Struggle to understand why does it fail in specific vite version, given the same version of the plugin & swc.

UPD: works fine with the latest [email protected]

@Jedliu
Copy link

Jedliu commented Jun 2, 2024

I have a working demo here nestjs-vite-demo. Check if this helps.

@jkhuangfu
Copy link
Author

I have a working demo here nestjs-vite-demo. Check if this helps.

thanks it is work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants