respimagelint icon indicating copy to clipboard operation
respimagelint copied to clipboard

JS Error (blank screen unable to complete results)

Open Dode123 opened this issue 2 years ago • 19 comments

I tried running respimagelint on my homepage, but get the following error: linter.js:455 Uncaught TypeError: ((0 , _parseMedia2.default)(...) || []).forEach is not a function at linter.js:455:485 at Array.forEach () at prepareMediaQueries (linter.js:455:431) at exports.default (linter.js:424:136) at 114../linter/index (linter.js:347:315) at o (linter.js:1:265) at r (linter.js:1:431) at linter.js:1:460

Site URL: https://www.boardgamedungeon.net/

Dode123 avatar Feb 04 '23 00:02 Dode123

I was not able to reproduce that issue on your website. Which browser (and version) are you using?

ausi avatar Feb 04 '23 08:02 ausi

Chrome. 109.0.5414.120 (Official Build) (64-bit)

Dode123 avatar Feb 04 '23 11:02 Dode123

I see this same issue 😦

image

URL is https://jetpack.com/blog/best-lazy-load-plugin-for-wordpress/

Version 110.0.5481.77

danielbachhuber avatar Feb 08 '23 17:02 danielbachhuber

I'm experiencing the same issue. This tool was really useful to me, so I hope it can be fixed.

mcrodriguez952 avatar Mar 16 '23 15:03 mcrodriguez952

Can you please try if using the chrome extension from https://github.com/ausi/respimagelint/issues/84#issuecomment-1469451685 works for you?

ausi avatar Mar 16 '23 15:03 ausi

Thanks for the suggestion, but I already tried that and I still get the blank screen and this error in the console. I'm on the latest Chrome (111.0.5563.64) on Mac.

[image: image.png]

On Thu, Mar 16, 2023 at 10:48 AM Martin Auswöger @.***> wrote:

Can you please try if using the chrome extension from #84 (comment) https://github.com/ausi/respimagelint/issues/84#issuecomment-1469451685 works for you?

— Reply to this email directly, view it on GitHub https://github.com/ausi/respimagelint/issues/85#issuecomment-1472234264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6PVLOCU6TGS2H24GM3YG3W4MY6HANCNFSM6AAAAAAUQ2ZPCE . You are receiving this because you commented.Message ID: @.***>

mcrodriguez952 avatar Mar 16 '23 16:03 mcrodriguez952

UPDATE: I see the bookmarklet or extension will work on some sites like https://support.safeasmilk.co/article/118-products-add-new-and-other-labels-to-your-products, but it will break on others like https://www.cnn.com/ (by break, I mean I see the progress bar, but then get the blank screen with this error in the console). Uncaught TypeError: ((0 , _parseMedia2.default)(...) || []).forEach is not a function at linter.js:455:485

mcrodriguez952 avatar Mar 16 '23 16:03 mcrodriguez952

I can reproduce the error only for: https://www.boardgamedungeon.net/ (both with Bookmarklet and Extension in Chrome and Arc)

@mcrodriguez952 Maybe it is related to these W3C error regarding two empty srcset on your logo:

Peter Neumann 2023-03-16 at 17 47 47@2x

https://validator.w3.org/nu/?doc=https://www.boardgamedungeon.net/

peter-neumann-dev avatar Mar 16 '23 16:03 peter-neumann-dev

The described error in the console appears after redirecting to https://ausi.github.io/respimagelint/linter.html (maybe good to mention it)

peter-neumann-dev avatar Mar 16 '23 16:03 peter-neumann-dev

The described error in the console appears after redirecting to https://ausi.github.io/respimagelint/linter.html (maybe good to mention it)

Does this mean a fix is coming soon?

Dode123 avatar Mar 27 '23 15:03 Dode123

I am also having this same issue on Firefox, using the bookmark (not the extension).

v11ncent avatar May 09 '23 00:05 v11ncent

I think I'm getting the same problem, on firefox 114.0.1 (64-bit) it shows the loading bar and upon reaching completion everything goes white and nothing happens while the console reports always the same thing in all pages: Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

alan-barzilay avatar Jul 01 '23 00:07 alan-barzilay

A little more information for Firefox, it gets to: https://ausi.github.io/respimagelint/linter.html where the browser console displays the error provided by @alan-barzilay

woodyrew avatar Jul 04 '23 16:07 woodyrew

Une solution a été trouvée ? car j'ai le même problème que ce soit avec l'extension ou le signet alors que j'ai pu l'utiliser il y a encore quelques heures.

KRotide avatar Aug 02 '23 18:08 KRotide

The issue in Firefox seems to be related to this warning: Partitioned cookie or storage access was provided to “https://ausi.github.io/respimagelint/store.html” because it is loaded in the third-party context and dynamic state partitioning is enabled.

I have to rework how the data gets transferred to the report page in https://github.com/ausi/respimagelint/blob/f2008cb3070171c16759038aeb43e7806aaef285/src/collector.js#L15

ausi avatar Aug 04 '23 20:08 ausi

Should be fixed in 194f75598b0fc0e26bb3166a17a3e5ecbb25f30b Please try again

ausi avatar Aug 04 '23 21:08 ausi

Fixed for me! Thanks!

alan-barzilay avatar Aug 05 '23 14:08 alan-barzilay

Thanks, working again now in Chrome and Firefox.

woodyrew avatar Aug 07 '23 11:08 woodyrew

I'm still experiencing this bug. Chromium and Firefox; bookmarlet and addon/extension. Only on some sites. Selezione_012

bayseek avatar Nov 13 '23 20:11 bayseek

Should be fixed with 8d3f9891e38af906b0a10b0ca4f4f5044cebbf85

ausi avatar Jun 26 '24 22:06 ausi