Closed ChrisCinelli closed 8 years ago
I'm getting that issue too. I used to use it all the time. Wonder what changed.
nevermind, figured it out. Looks like it does not work with multi-compiler mode.
@sokra any chance there's a way to ease that workflow?
You can extract the child stats from the stats json. I think it's in the children
property. Copy it into a separate file and feed this into the analyse tool.
Technically this could be added as feature to the analyse tool, but it's a bit old and it's propably better to rewrite it completly.
I ran into this issue as well, and running cat stats.json | jq '.children[0]' > stats2.json
does the trick. (Or children[1]
, etc.)
@ChrisCinelli I merged this PR: https://github.com/webpack/analyse/pull/21
I think it should solve your issue.
Kindly check the config.json of your "shared" folder in C:. make sure the routerIP is set to your machine IP and also stop all the services which are running before you do run.bat again.
I hit this error again, and I was able to fix it by adding "modules": []
to the stats JSON. It looks like the JSON output didn't include a modules
Array.
Somehow my output has only "chunks" and no "modules," so I don't know what that's about.
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: https://github.com/webpack/webpack/issues/9392
Still experiencing this issue
If using webpack-stats-plugin
you must add the stats
key like so:
new StatsWriterPlugin({
filename: 'stats.json',
stats: {
all: true,
},
})
I am trying to use https://webpack.github.io/analyse/#home but I am getting this: