Closed michael-land closed 1 year ago
Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project).
should be related to #2245
@kamilmysliwiec
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:
{
"outDir": "./dist",
}
to reproduce, see https://codesandbox.io/p/sandbox/github/nestjs/typescript-starter/tree/master?file=%2Fpackage.json%3A29%2C26
Should we revert https://github.com/nestjs/nest-cli/pull/2228 for the time being then?
The problem remains
Could you test with 10.1.14?
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