Issue starting the server

#487 · open · 5 comments

View on GitHub ↗

Dru-Go

![image](https://github.com/notiz-dev/nestjs-prisma-starter/assets/36500142/82f034c7-7b1e-4a40-8035-52fc19cba0e3) Node version - v18.16.1 npm version - 9.5.1

Comments

Charan-Kumar

I am also facing the same issue. :(

tahirmahmudzade

I'm facing the same error, whenever I try to set builder to swc imports are not being set correctly in dist/main.js file.

marcjulian

Trying to figure it out. I cloned the project fresh and run ``` npm install npm run start:dev ``` And Nest starts without any issues. Did you make any changes? A repo to reproduce the error would be helpful.

marcjulian

You can see what I had to change to make swc work correctly [ba67287](https://github.com/notiz-dev/nestjs-prisma-starter/commit/ba67287dd84d68ddb68235d77ad17d713ab7484b). Imports cannot start with `src/path/to/import` it must be the correct path to the file `./path/to/import`. Maybe this helps.

jstnmthw

> Trying to figure it out. I cloned the project fresh and run > > ``` > npm install > npm run start:dev > ``` > > And Nest starts without any issues. > > Did you make any changes? A repo to reproduce the error would be helpful. ~~I was getting the same when using `yarn`. I switched to `npm`, and it started successfully.~~ This looks to be a problem with SWC https://github.com/swc-project/swc/issues/7930. Downgrading to "@swc/core": "1.3.78", seems to work for now.