-
Notifications
You must be signed in to change notification settings - Fork 394
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
Cannot find module 'dist/main' after upgrading to 10.1.12 #2247
Comments
Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project). |
should be related to #2245 |
The problem persists even after upgrading to version 10.1.13. in this pr #2228, it resolve absolute path. The problem revolves around the inability of the nodejs require.resolve function to function correctly with absolute paths. https://github.com/nestjs/nest-cli/blob/master/lib/configuration/defaults.ts#L29C14-L29C27. By default, the "outdir" is set to "dist" but I recommend changing it to "./dist" To address this problem, a workaround involves adding the following line to your tsconfig.json file to override the default value:
to reproduce, see |
Should we revert #2228 for the time being then? |
The problem remains |
Could you test with 10.1.14? |
10.1.14 is functional as expected |
Is there an existing issue for this?
Current behavior
Minimum reproduction code
Steps to reproduce
No response
Expected behavior
no error
Package version
10.1.12
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: