vite-plugin-node
vite-plugin-node copied to clipboard
not support parameter decorators
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“
this is my vite config
I faced the same error using vite > 5, it works with vite ~4.
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]
I have a working demo here nestjs-vite-demo. Check if this helps.