webpack / analyse

analyse web app for webpack stats
http://webpack.github.com/analyse
880 stars 139 forks source link

Is analyse still an active project? #40

Open nick-brady opened 5 years ago

nick-brady commented 5 years ago

I tried using with a profile file from Webpack v4. After uploading the file nothing happened.

There doesn't seem to be any recent activity, but the package itself doesn't say deprecated or that it is no longer supported. Is analyse still an active project?

Thanks in advance!

earshinov commented 5 years ago

Same to me. The project does not seem supported any more.

https://webpack.github.io/analyse/ does not load the file, neither in Chrome nor in Firefox. In both cases, there are errors in browser's dev tools console.

Google Chrome | 73.0.3683.86

web.js:1 Uncaught TypeError: Cannot read property 'sort' of undefined
    at r (web.js:1)
    at Object.e.load (web.js:1)
    at FileReader.e.onload (8.568a26e05565c8025a86.js:1)

Firefox 66.0.2:

TypeError: t.modules is undefined web.js:1:1462
    r https://webpack.github.io/analyse/web.js:1
    load https://webpack.github.io/analyse/web.js:1
    onload https://webpack.github.io/analyse/8.568a26e05565c8025a86.js:1
slavafomin commented 5 years ago

Looks like the stats format was changed at some point by Webpack and the tool wasn't updated to handle new format correctly. It can't find the modules property in the stats structure.

@sokra could you elaborate on this issue please? How drastically is this tool outdated? Would it be difficult to update it to make it work with the latest Webpack? It looks very useful, especially comparing with other tools, that are just too primitive.

12kb commented 4 years ago

Practical hint: Manual unwraping of single data entry helped in my case. Generated stats was:

{
   ...
   "children": [{...data...}]
}
dutzi commented 4 years ago

Seems like the JSON has the following 2 lines at the start:

Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close it

Deleting these helped.

niklasholm commented 1 year ago

Nope