gocomics.com not functional; error mentions Next.js Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
ajgelado
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2020-02-04, 06:04

gocomics.com not functional; error mentions Next.js

Post by ajgelado » 2026-03-24, 03:23

Since late last week (around March 19th), gocomics.com has stopped working correctly. All functions which depend on scripts (image zoom, calendar, search) do not work at all. It can be reproduced by visiting https://www.gocomics.com/garfield.

Tested on version 34.1.0 in a clean profile. Before last week, the same version worked perfectly (I visit the site daily), so it doesn't seem a regression in Pale Moon.

The console shows a bunch of unrelated CSS warnings and then this error:

Code: Select all

Error: Invariant: Expected document.currentScript to be a <script> element. Received null instead. This is a bug in Next.js.
The page does not reference Next.js, but it starts with which seems an inline minified version of it. In fact, Next.js' website, https://nextjs.org/, shows the exact same symptoms: no scripts, and the same error on the console. This would point to a compatibility problem with Next.js.

User avatar
adoxa
Astronaut
Astronaut
Posts: 616
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: gocomics.com not functional; error mentions Next.js

Post by adoxa » 2026-03-24, 07:01

Here's an update to an earlier Modify HTTP Response filter.

Code: Select all

[["www.gocomics.com",["/\\.css$/",["/min\\((.*?),.*?\\)/g","$1","/clamp\\(.*?,(.*?),.*?\\)/g","calc($1)","/@property (.*?)\\{syntax.*?initial-value(:.*?)\\}/g",":root{$1$2}"]],["/^[^.]*$/",["/image-set\\((.*?) 1x.*?2x\\)/g","$1"]],["/\\.js$/",["let e=document.currentScript","return \"\""]]]]

User avatar
ajgelado
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2020-02-04, 06:04

Re: gocomics.com not functional; error mentions Next.js

Post by ajgelado » 2026-03-24, 13:41

That solves it. Thank you!

User avatar
Moonchild
Project founder
Project founder
Posts: 39119
Joined: 2011-08-28, 17:27
Location: Sweden

Re: gocomics.com not functional; error mentions Next.js

Post by Moonchild » 2026-03-24, 14:49

I'll be looking into fixing this for the next dev release. Issue #3020 (UXP)
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Goodydino
Keeps coming back
Keeps coming back
Posts: 965
Joined: 2017-10-10, 21:20

Re: gocomics.com not functional; error mentions Next.js

Post by Goodydino » 2026-03-24, 17:44

That page works for me. I did not need to add a sript to read it.

User avatar
Moonchild
Project founder
Project founder
Posts: 39119
Joined: 2011-08-28, 17:27
Location: Sweden

Re: gocomics.com not functional; error mentions Next.js

Post by Moonchild » 2026-03-24, 20:28

Goodydino wrote:
2026-03-24, 17:44
That page works for me. I did not need to add a sript to read it.
Did you try to click the date to call up a calendar overlay, or did you try to click a comic strip to enlarge it?
Pages do load even with the error but are functionally impaired.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite