Open plonkton228 opened 5 days ago
hi @plonkton228 let me check on it. Thanks for reporting.
@plonkton228 first question https://github.com/plonkton228/Angular - this is an Angular workspace, not NX one. Have you migrated the workspace to NX -> https://nx.dev/recipes/angular/migration/angular ?
Hi, @pawel-twardziak my mistake, I should have initially mentioned that the fully configured project by Nx is located on the "NxConfiguration" branch.
thanks @plonkton228 for the clarification 👍I am checking
Current Behavior
I am using "@nx/angular:webpack-browser" to apply a custom Webpack configuration. However, when running the nx build --verbose command, I get the following error: " webpack 5.94.0 compiled with 4 warnings in 6344 ms ✔ Index html generation complete. NX Cannot read properties of undefined (reading 'colors') TypeError: Cannot read properties of undefined (reading 'colors') at statsToString (C:\localProject\nxAngular\Angular\node_modules\@angular-devkit\build-angular\src\tools\webpack\utils\stats.js:79:32) at webpackStatsLogger (C:\localProject\nxAngular\Angular\node_modules\@angular-devkit\build-angular\src\tools\webpack\utils\stats.js:280:17) at C:\localProject\nxAngular\Angular\node_modules\@angular-devkit\build-angular\src\builders\browser\index.js:287:48"
I am also attaching the files nx.json, project.json nx.json project.json
Screenshots of the Webpack configuration
Expected Behavior
The error is gone, the bundle is building.
GitHub Repo
https://github.com/plonkton228/Angular
Steps to Reproduce
1) Use @nx/angular:webpack-browser as the executor for building the project, specifically the nx build command. 2) Make sure to use your custom Webpack configuration.
Nx Report
Failure Logs
Package Manager Version
10.8.2
Operating System
Additional Information
No response