vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

not support parameter decorators

Open jkhuangfu opened this issue 1 year ago • 5 comments

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 avatar Feb 04 '24 09:02 jkhuangfu

this is my vite config image

jkhuangfu avatar Feb 04 '24 09:02 jkhuangfu

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

Eldow avatar Feb 20 '24 11:02 Eldow

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]

AmirAlOmari avatar Mar 27 '24 08:03 AmirAlOmari

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

Jedliu avatar Jun 02 '24 09:06 Jedliu

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

thanks it is work

jkhuangfu avatar Jun 03 '24 08:06 jkhuangfu