-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build is breaking after upgrade SWC CORE 1.3.78 to 1.3.79 in NestJs projects. #7930
Comments
The funny thing about all this is that with the use of "paths" in "tsconfig.json" the errors stop, is it something new and undocumented? But unfortunately I'm not used to using "aliases" in my projects and since the update I feel obliged to work around the problem. Full:
|
same here, we downgraded to 1.3.78 and everything is working again. |
Can you try updaing |
Closing as there's no repro, and there are many fixes related to |
@kdy1 Can you please reopen it? Here's a reproducible example on CodeSandBox with latest swc core version published (1.3.87): https://codesandbox.io/p/sandbox/dawn-hill-9858zs?file=/package.json:34,5-34,28 Steps to reproduce:
|
Please file a new issue instead |
Done here #7990 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
Hello, I'm currently experimenting with NestJs projects with SWC as per the documentation:
https://docs.nestjs.com/recipes/swc
Everything was going fine until I decided to create a new project with the latest patch, but I'm getting:
I analyzed version 1.3.79 up to 1.3.83 and I noticed that the dist/main.js file is pointing to:
const _appmodule = require("src/app.module");
And not as it should in 1.3.78
const _appmodule = require("./app.module");
The project is clean, just the cli version adding the swc already triggers the errors:
@swc/cli": "0.1.62", "@swc/core": "1.3.78",
I'm testing the project on WSL2. So basically something happened in patch 1.3.79 that broke file paths.
Input code
No response
Config
Playground link
No response
SWC Info output
`
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Function.Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/flavioever/PESSOAL/project/procjet-backend/dist/main.js:5:15)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
`
Expected behavior
Actual behavior
No response
Version
1.3.83
Additional context
No response
The text was updated successfully, but these errors were encountered: