Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue starting the server #487

Open
Dru-Go opened this issue Sep 4, 2023 · 5 comments
Open

Issue starting the server #487

Dru-Go opened this issue Sep 4, 2023 · 5 comments

Comments

@Dru-Go
Copy link

Dru-Go commented Sep 4, 2023

image

Node version - v18.16.1
npm version - 9.5.1

@Charan-Kumar
Copy link

I am also facing the same issue. :(

@tahirmahmudzade
Copy link

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
Copy link
Member

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
Copy link
Member

You can see what I had to change to make swc work correctly ba67287.

Imports cannot start with src/path/to/import it must be the correct path to the file ./path/to/import. Maybe this helps.

@jstnmthw
Copy link

jstnmthw commented Sep 10, 2023

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 swc-project/swc#7930.

Downgrading to "@swc/core": "1.3.78", seems to work for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants