-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Cant use webpack bundle analyzer. the stats.json generated by ng build is missing the assets property #27190
Comments
This appears to be webpack-contrib/webpack-bundle-analyzer#490. |
Closing as this is not caused by the Angular CLI. |
Greetings at least can we get documentation on this command? |
I've gone and found this package https://www.npmjs.com/package/vite-bundle-analyzer ng build && cd [PROJECT PATH NAME HERE NO BRACKETS]/[browser or server IF YOU USED SSR NO BRACKETS] && vite-bundle-visualizer --open |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build
Is this a regression?
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
Your Environment
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
The text was updated successfully, but these errors were encountered: