Closed cloakedch closed 1 year ago
same problem here
same problem
@MarcosRava @Debananda
please don't send "+1" comments. Use reaction emojis instead ;) otherwise we'll have to lock this Issue due to unuseful notifications. Thanks.
If I understood the problem correctly by looking at the minimal reproduction of @cloakedch I downloaded , it could be fixed in the nest-cli.json
file by changing "webpack": true
to "builder": "webpack"
Before
...
"compilerOptions": {
"deleteOutDir": true,
"webpack": true,
"tsConfigPath": "apps/nest-typescript-starter/tsconfig.app.json"
},
...
After
...
"compilerOptions": {
"deleteOutDir": true,
"builder": "webpack",
"tsConfigPath": "apps/nest-typescript-starter/tsconfig.app.json"
},
...
This change was made in v10 of nestjs-cli package(see here: https://github.com/nestjs/nest-cli/commit/f958183dcc9d721cb365294e8465d3fc28140240#diff-50d4a261e8cf91b9d15210fb0ceb896e2bdeb6c63101b3efd357e88f115f341bR15-R22), in fact in your ide or editor you should be able to read this message ( see screenshot )
So maybe it is a configuration problem, which is causing the error.
I hope I have been helpful
@Tony133 thank you for your help. This helps to temporarily fix the problem. Since the code is generated using the nest cli command, I suspect the blueprints need to be updated?
@Tony133 thank you for your help. This helps to temporarily fix the problem.
You're welcome, it's nothing, ๐๐
Since the code is generated using the nest cli command, I suspect the blueprints need to be updated?
Maybe it's best to wait for Kamil on this point, to be sure.
However, I think we should specify this on the migrations page of the documentation, if my understanding is correct. ๐
Hi.
I've found that this problem occurs only when I create sub-app (for ms). Nest-cli updates the tsconfig.build.json.
I did remove the line where exclude parts come in, and everything started working normally.
I don't know if this way of fixing is correct or not.
FYI: project that I was working on has been created an hour ago using nestjs cli.
Using "builder": "webpack"
it's ignoring webpack.config.js
for me
Fixed in 10.1.1
Is there an existing issue for this?
Current behavior
I am running into the following error:
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-xquxyt
Steps to reproduce
1) Download latest NodeJS (v18.16.1) 2) Install latest NestJS via
npm install -g @nestjs/cli
or alternatively update vianpm update -g
3) Runnest new test
and choosenpm
as the package manager 4) Insidetest
runnest generate app test2
5) Try to runnpm run build
. Above error message is producedExpected behavior
A valid build without webpack errors.
Package
Other package
No response
NestJS version
10.1.0
Packages versions
Node.js version
18.16.1
In which operating systems have you tested?
Other
No response