axe-me / vite-plugin-node

Vite plugin to run your node dev server with HMR!
990 stars 46 forks source link

I used the nestjs and vite-plugin-node example, they threw this err,,,what makes it so #98

Closed DankeBIBI closed 11 months ago

DankeBIBI commented 1 year ago

VITE v4.4.9 ready in 589 ms

➜ Local: http://127.0.0.1:3000/ ➜ Network: use --host to expose ➜ press h to show help [Nest] 22660 - 2023/08/28 17:40:32 LOG [NestFactory] Starting Nest application... [Nest] 22660 - 2023/08/28 17:40:32 LOG [InstanceLoader] AppModule dependencies initialized +18ms [Nest] 22660 - 2023/08/28 17:40:32 LOG [RoutesResolver] AppController {/}: +33ms[Nest] 22660 - 2023/08/28 17:40:32 LOG [RouterExplorer] Mapped {/, GET} route +7ms [Nest] 22660 - 2023/08/28 17:40:32 LOG [NestApplication] Nest application successfully started +4ms [Nest] 22660 - 2023/08/28 17:40:32 ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'getHello')TypeError: Cannot read properties of undefined (reading 'getHello')

DankeBIBI commented 1 year ago

right,This service started running when I changed tsCompiler:'esbuild' to 'swc'

axe-me commented 11 months ago

yea, nestjs need to use swc