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.

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

See original GitHub issue

I had to have my company laptop completely reset. I don’t know if there has been a recent Violentmonkey update, I have now Violentmonkey 2.13.1. Now my version of Vivaldi 5.4.2753.51 (Stable channel) (64 bits) is a User only version (no admin rights), in %LocalAppData\Programs\Vivaldi.

I have a script here, that used to work but now says it cannot find a function from my @require directive:

https://github.com/jesus2099/konami-command/blob/master/odigo-ivr-designer_TURBO-BOOST.user.js

// @require      https://github.com/jesus2099/konami-command/raw/de88f870c0e6c633e02f32695e32c4f50329fc3e/lib/SUPER.js?version=2022.3.24.224

This file does contain a createTag function defined and it used to work on my laptop before the reset, but now I get the following error on line 32:

Uncaught (in promise) ReferenceError: createTag is not defined

I am creating this ticket for future reference if I find the problem. I will investigate how to reproduce, etc.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tophfcommented, Sep 22, 2022

Why are you creating without a repro? This is not how bug trackers work 😃

0reactions
jesus2099commented, Sep 28, 2022

Subsequent https://github.com/violentmonkey/violentmonkey/issues/1581 got fixed! Just waiting for the new release, using the work-around.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node JS. Uncaught (in promise) ReferenceError: require is not ...
I'm working in a project using NodeJS and trying to create a JSON file with some data but fs (filesystem) does not seem...
Read more >
ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >
Uncaught (in promise) ReferenceError: kendo is not defined
Hello,I am receiving the following error when I try to implement ListView in my current project, "Uncaught (in promise) ReferenceError: ...
Read more >
Uncaught (in promise): ReferenceError: GoldenLayout is not ...
Current behavior I am using Golden Layout in Angular 4 application with webpack. As solution suggested here I m using this plunker code....
Read more >
Uncaught ReferenceError: template is not defined
The console gives me the error "Uncaught ReferenceError: template is not defined". What am I doing wrong? I've already tried reinstalling meteor. try....
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