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

Webpack 3 stats.json won't upload. #2

Open
stephan-v opened this issue Jul 28, 2017 · 1 comment
Open

Webpack 3 stats.json won't upload. #2

stephan-v opened this issue Jul 28, 2017 · 1 comment

Comments

@stephan-v
Copy link

I am currently getting this error message:

Uncaught TypeError: Cannot read property '0' of undefined
    at getTreeFromStats (App.js:50)
    at FileReader.App.handleFileLoad

I think it has to do with the formatting of the .json file being different for Webpack 3 which I am running?

There is a similar message on the official webpack visualizer's issue page:

webpack/analyse#30

@slavafomin
Copy link

Make sure that you generate the stats.json file with modules property set to true, otherwise it will not contain it and will cause the issue with most tools. Be advised, that verbose preset IS NOT including the modules field, despite what the documentation says.

Here's some more details: webpack/webpack#9392

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

2 participants