webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.53k stars 479 forks source link

Could't analyze webpack bundle: TypeError: Cannot read properties of undefined (reading 'filter') #605

Closed qyjs closed 1 year ago

qyjs commented 1 year ago

angular 16.1.3 webpack-bundle-analyzer 4.9.0

I execute a command line startup error

image

th0r commented 1 year ago

Fill issue template please.

chrismclarke commented 8 months ago

I received the same message, it's because angular now includes esbuild and so the corresponding stats.json should be analyzed with https://esbuild.github.io/analyze/ and not webpack-bundle-analyzer.

If still having issues probably best to open issue on the angular-cli repo instead.

duxor commented 6 months ago

@chrismclarke is there any way to run it from CLI like a webpack-bundle-analyzer?

MykolaVanko commented 6 months ago

@chrismclarke is there any way to run it from CLI like a webpack-bundle-analyzer?

Hi. Try this one https://www.npmjs.com/package/esbuild-visualizer

"analyze": "esbuild-visualizer --open=true --metadata dist/stats.json",