-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed as not planned
Closed as not planned
Copy link
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
17.1.0
Description
From moving from the old architect to the new architect stats.json assets property is missing. webpack-bundle analyzer fails because the assets property is missing and you are not able to view the dependencies in your code
Minimal Reproduction
npm install -s @angular/cli
npx ng new my-app
cd .\my-app
npm install -D webpack-bundle-analyzer
npx ng build --stats-json; npx webpack-bundle-analyzer --port 9000 dist/my-app/stats.json
Exception or Error
Could't analyze webpack bundle:
TypeError: Cannot read properties of undefined (reading 'filter')
Your Environment
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1702.2
@angular-devkit/build-angular 17.2.2
@angular-devkit/core 17.2.2
@angular-devkit/schematics 17.2.2
@angular/cli 17.2.2
@angular/ssr 17.2.2
@schematics/angular 17.2.2
rxjs 7.8.1
typescript 5.3.3
zone.js 0.14.4
Anything else relevant?
Here is the github repo https://github.com/windmillcode0/angular-webpack-bundle-analyzer-fails
all you have to do is npm install
then npm run analyze
Metadata
Metadata
Assignees
Labels
No labels