respimagelint icon indicating copy to clipboard operation
respimagelint copied to clipboard

Error when run

Open GaetanRedoutez opened this issue 2 years ago • 5 comments

Hello, When i'm using the bookmark the actual result is totaly white like this : image Can you help me ?

GaetanRedoutez avatar Nov 28 '23 09:11 GaetanRedoutez

Can you tell me more?

Nasirahamad88 avatar Nov 28 '23 09:11 Nasirahamad88

Maybe better with the error, when i run on my site, with the bookmark and extension i've a console error : linter.js:467 Uncaught TypeError: Cannot read properties of undefined (reading 'fixed') at linter.js:467:750 at Array.map () at computeSizesAttribute (linter.js:467:724) at linter.js:369:376 at Array.forEach () at exports.default (linter.js:369:127) at exports.default (linter.js:355:349) at linter.js:424:192 at Array.forEach () at exports.default (linter.js:424:147)

GaetanRedoutez avatar Nov 28 '23 09:11 GaetanRedoutez

Does the error also occur if you use the browser extension? https://chrome.google.com/webstore/detail/responsive-image-linter/mnddginionlghpblkimpdalcecpnbjln

ausi avatar Nov 28 '23 10:11 ausi

Yes exactly the same,

GaetanRedoutez avatar Nov 28 '23 11:11 GaetanRedoutez

We probably need to add a check if currentRage is undefined here: https://github.com/ausi/respimagelint/blob/194f75598b0fc0e26bb3166a17a3e5ecbb25f30b/src/util/computeSizesAttribute.js#L57-L58

ausi avatar Nov 29 '23 13:11 ausi

I'm currently facing the same issue. May I know when this PR https://github.com/ausi/respimagelint/pull/94 can be merged?

Harizriz avatar May 12 '24 09:05 Harizriz