New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'gzip' of undefined #69
Comments
Fixed in 4.0.2 |
Ok, now i need more details. Can you share your html? |
There you go :) |
Fixed. |
Using version 5.9.0 I'm also getting this error. It looks like it's set (to false) in const options, but I don't know why this function doesn't have acccess to it anymore. stats.html:655 const getAvailableSizeOptions = (options) => { |
Please create new issue. I do not issue of 2020 is the same. Make sure to
post your rollup config and node version
сб, 25 февр. 2023 г., 00:09 Kevin Watt ***@***.***>:
… Using version 5.9.0 I'm also getting this error. It looks like it's set
(to false) in const options, but I don't know why this function doesn't
have acccess to it anymore.
stats.html:655
Uncaught TypeError: Cannot read properties of undefined (reading 'gzip')
const getAvailableSizeOptions = (options) => {
const availableSizeProperties = ["renderedLength"];
if (options.gzip) {
availableSizeProperties.push("gzipLength");
}
if (options.brotli) {
availableSizeProperties.push("brotliLength");
}
return availableSizeProperties;
};
—
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRYA67TRIHDNQHOX23HM3WZE5TVANCNFSM4LW3NO7A>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
My apologies, I tested more and now it's working. I believe the confusion of where the file ends up (stats.html in the base directory_ led me to find a stats.html that maybe I made when trying this ages ago? I'm not sure, besides that it's working now, thanks :) |
and that's the section where it throws
as well as here
The text was updated successfully, but these errors were encountered: