Dru-Go
 Node version - v18.16.1 npm version - 9.5.1
#487 · open · 5 comments
 Node version - v18.16.1 npm version - 9.5.1
I am also facing the same issue. :(
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.
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.
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.
> 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.