Svelte.dev JavaScript Problem

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
Tritus
New to the forum
New to the forum
Posts: 1
Joined: 2021-07-30, 14:18

Svelte.dev JavaScript Problem

Unread post by Tritus » 2021-07-30, 14:32

https://svelte.dev/
+ several subpages

... loading, then error from JavaScript problem (but only with Palemoon, latest version, no addons active, not occurring in any other major browser) :

Yikes!
500: __inject_styles is not a function
Please try reloading the page.
If the error persists, please drop by Discord chatroom and let us know, or raise an issue on GitHub. Thanks!

hope this helps improving Palemoon :-)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Svelte.dev JavaScript Problem

Unread post by Moonchild » 2021-07-30, 18:06

If that's an http error 500, then that is (by definition) a server-side error.
Perhaps their server code chokes on "unknown browser"?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
RealityRipple
Astronaut
Astronaut
Posts: 644
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California
Contact:

Re: Svelte.dev JavaScript Problem

Unread post by RealityRipple » 2021-07-30, 18:46

It's not a HTTP error, it's another script relying on import. The script checks to see if the import succeed or failed by calling the function defined in the imported script. It fails, they show that message. I have no idea why they chose 500 for their error message. It's also already been reported on their GitHub: https://github.com/sveltejs/svelte/issues/6402.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Svelte.dev JavaScript Problem

Unread post by Moonchild » 2021-07-30, 19:06

:roll: Just to keep things not confusing, eh?

ftr I added a reply to that issue the dev chose to close unsolved.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked