Do you want to request a _feature_ or report a _bug_?
A bug.
What is the current behaviour?
Command preact build --analyze is not working, it throws an error after successfully making a build.
If the current behaviour is a bug, please provide the steps to reproduce.
Create a "build:analyze": "preact build --analyze", entry in the scripts section at package.json, then run npm run build:analyze. The build process ends just fine but then the following error is immediately displayed and the process is interrupted:
...
Critters: inlined 214 B (100% of original 212 B) of bundle.e1dd1.css.
✖ ERROR TypeError: Cannot read property 'hasErrors' of undefined
at showStats (/Users/desko27/Code/GitHub/project/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:118:12)
at compiler.run (/Users/desko27/Code/GitHub/project/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:106:4)
at finalCallback (/Users/desko27/Code/GitHub/project/node_modules/webpack/lib/Compiler.js:220:39)
at hooks.done.callAsync.err (/Users/desko27/Code/GitHub/project/node_modules/webpack/lib/Compiler.js:268:23)
at _err1 (eval at create (/Users/desko27/Code/GitHub/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:18:1)
at Immediate.<anonymous> (/Users/desko27/Code/GitHub/project/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:79:13)
at Generator.throw (<anonymous>)
at asyncGeneratorStep (/Users/desko27/Code/GitHub/project/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:3:103)
at _throw (/Users/desko27/Code/GitHub/project/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:5:291)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:122:5)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
What is the expected behaviour?
The following web app should be served on 8888 port, as stated in the PR which introduced the feature.

If this is a feature request, what is motivation or use case for changing the behaviour?
-
Please mention other relevant information.
the update in this repo is still pending and one more small bug i discovered on the way
Most helpful comment
the update in this repo is still pending and one more small bug i discovered on the way