Open gustavohenke opened 7 years ago
Thanks for the report. I didn't know that it was possible to configure webpack in such a way that this information would be missing from the JSON output. It shouldn't be too difficult to to spit out a more helpful error message.
And thank you for making the title of this issue clearer as well 😊
Hi! I tried running webpack-bundle-size-analyzer against the output generated by my app for the first after some iterations, and was surprised by the following error:
One change I made was to hide most stats from the webpack logs with the
stats
key mywebpack.config.js
:Obviously this was the cause of the error above. The only thing I found to work is to remove these. I haven't tried any combination of webpack CLI flags apart from
--verbose --json
(which didn't work).It would be nice to document this problem and how to solve it, so others don't get into this trap as well. And if you know about a more elegant way around this, let me know!