question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some run-at make require loading crash

See original GitHub issue

Following Uncaught (in promise) ReferenceError: <function_from_@require_directive> is not defined #1580


Is it a new bug that some values of @run-at will cause the script to not load @require library at run time?

// ==UserScript==
// @name         New NG script
// @require      https://github.com/jesus2099/konami-command/raw/de88f870c0e6c633e02f32695e32c4f50329fc3e/lib/SUPER.js?version=2022.3.24.224
// ==/UserScript==
"use strict";
console.log("NEW NG SCRIPT");
createTag("span", {}, "test");

image

This does not work, the SUPER.js code is not append. I also tried // @run-at document-ready and // @run-at document-idle both no good (NG), as well.

// ==UserScript==
// @name         New OK script
// @require      https://github.com/jesus2099/konami-command/raw/de88f870c0e6c633e02f32695e32c4f50329fc3e/lib/SUPER.js?version=2022.3.24.224
// @run-at       document-start
// ==/UserScript==
"use strict";
console.log("NEW OK SCRIPT");
createTag("span", {}, "test");

image

This works with // @run-at document-start !?

Other values than document-start are blocking the @require loading.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
tophfcommented, Oct 28, 2022

Fixed in https://github.com/violentmonkey/violentmonkey/commit/070eca76c6c41cd8b5b97a2b0b9293946bbedc07.

If you click the link you’ll see the versions that include the fix.

1reaction
tophfcommented, Sep 24, 2022

Fixed in 070eca76. The workaround until the new release might be to add something meaningless to the second URL e.g. #bugfix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rust keeps crashing as I try to load into a server
Here are some troubleshooting steps: 1. Using System File Checker in Windows to make sure there is no missing or corrupted files in...
Read more >
System error (Game crashes on loading screen) : r/leagueoflinux
Issue - The game just crashes when i try to enter the loading screen. ... How have you made it run at the...
Read more >
Troubleshooting - Landfall
You can see the system requirements on the Steam Store page for each game: ... Some software will automatically run at startup in...
Read more >
Browser crash detection server side c# - Stack Overflow
As when browser or page crashes I need to detect it in the server-side what I actually found is this solution so far...
Read more >
Grounded Fatal Error, Crash, And Fixes - RespawnFirst
Grounded PC is facing errors like the crash at startup, ... Players just have to make the game run at DX 11 and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found