-
Notifications
You must be signed in to change notification settings - Fork 401
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
cli can`t build anymore #1865
Comments
ok fine - recognized it works if nest-cli.json is an empty object... {
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {}
} updated nest schematics to latest version 9.0.4 after using 9.0.3 - no change |
Ok I narrowed it down to the assets part in the compilerOptions {
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"assets": [
"shared/mail/templates/**",
{
"include": "../views",
"outDir": "dist/views",
"watchAssets": true
}
]
}
} and it doesn`t matter which asset I keep in the array - fails with both options... Just to mention it: using
|
I guess this has something to do with your project's file structure + assets. Hard to tell without a reproduction project. |
I have the same problem
The The problem occurs after updating |
@piotar so you didn't changed anything other upgrading |
I just updated
|
this regression maybe have been introduced in fee2571 |
Reverted in 9.1.8 |
This problem still exists in version 9.2.0. Reverted in 9.3.0. And in @nestjs/cli/lib/compiler/helpers/copy-path-resolve.js line 20. if (depth(inPath) < up) {
throw new Error('cant go up that far');
} Like restricting the copying of root files to dist. Assets "../*.env" is not working. "compilerOptions": {
"assets": ["../client/*", "../*.env"],
"watchAssets": true
},
``
|
Is there an existing issue for this?
Current behavior
using 9.1.7 when I run
the process doesn´t end.
Recognized it when CI / CD got stuck.
Build process runs as expected when v 9.1.5 is used.
Minimum reproduction code
https://github.com/kelseyhightower/nocode
Steps to reproduce
npm i
npm i -D @nestjs/cli@latest
nest build
Expected behavior
build process ends as expected.
Package version
9.1.7
NestJS version
9
Node.js version
v14.19.2
In which operating systems have you tested?
Other
nest cli config
The text was updated successfully, but these errors were encountered: