hardcode to use .artifacts
commit sha： 3bbb49b98732d0ae797239c4f9c7c378c1ff0154push time in 1 month ago
commit sha： 1d0e648faf0607881157cc91c7c1865c6fb7c032push time in 1 month ago
commit sha： b24d3b6a89d6eae4009f02f1254bb3809e476d6fpush time in 1 month ago
Web App fails to boot: Unable to handle `null` values in `<chunk>.files` Array
Describe the bug
I'm not what causes our Stats output to create a
null value in a
files array, but the parsing logic around this breaks the entire web application.
Here's what our stats output looks like...
And here's the errors we get when trying to load it...
I was able to find this piece of logic here, https://github.com/statoscope/statoscope/blob/master/packages/webpack-model/src/handleCompilation.ts#L426. I noticed there is a
.filter(Boolean) after the
.map. I believe putting the
.filter first would solve this issue.
To Reproduce Steps to reproduce the behavior:
- Go to https://statoscope.tech
- Upload this stats output (this is really trimmed down for security reasons). https://gist.github.com/SimulatedGREG/97443730ff9637bcbf90151f2154af8b
- See browser console for error.
I'd expect to use https://statoscope.tech to load a Stats output from my
- Node (for non-browser bug):
Service: Add Cypress
bundle exec ruby extract.rb https://www.cypressstatus.com/