Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
RequireJS Error Mismatched anonymous when using bind this inside a require

So, I'm using RequireJS in my project, and when I use bind this in a require, it generate Uncaught Error: Mismatched anonymous, like so:

require(['registerHover/view'], function (RegisterHover) {
   this.loginHover = new RegisterHover();
}.bind(this));

it is inside a class, how can I pass this context inside the require function without generating Mismatched anonymous? I guess it's because bind return a new function and RequireJS considers an anonymous function, when I don't use bind (when I don't need this context), it works just fine.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!