Skip to content
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

Cannot read property 'forEach' of undefined #57

Open
rchod opened this issue Sep 19, 2018 · 8 comments
Open

Cannot read property 'forEach' of undefined #57

rchod opened this issue Sep 19, 2018 · 8 comments

Comments

@rchod
Copy link

rchod commented Sep 19, 2018

screenshot from 2018-09-19 16-44-27

FYI the file I tried to upload was like 54 Mb

@hmafzal
Copy link

hmafzal commented Nov 20, 2018

I'm seeing the same, with a file size of 60MB and using Webpack 4

@stof
Copy link

stof commented Feb 21, 2019

I got this when uploading a stats file generated by a multi-compiler run of webpack.

@bryanressler-idmod
Copy link

I'm seeing this exact issue with a 12MB stats file generated from webpack 4.31.0.

@mflores-verys
Copy link

Seeing this issue with a 25MB stats file generated from Webpack 4.

@rtyx
Copy link

rtyx commented Sep 23, 2019

I'm also seeing this with a 60,8MB stats.json file

@crtl
Copy link

crtl commented Feb 23, 2021

33.5Mb also doesnt work.

@oneEyedSunday
Copy link

37.8MB also doesnt work

@JasonKleban
Copy link

For me, it was because expected stats object properties were not found by getAssetsData().

https://github.com/chrisbateman/webpack-visualizer/blob/ea9ed0b8e8c83b45c398aa7605f9d8478f031f23/src/shared/util/stat-utils.js

However you control your stats options, make sure the ones it needs are emitted:

stats: {
    ...
    chunks: true,
    assets: true,
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants