defined variable is throwing a ReferenceError (JavaScript)
What steps have you taken to resolve the issue?
I’m getting a ReferenceError in JavaScript code that has never had any problems in the past. and I can’t debug it.because the variable causing the error is defined and the error is being thrown elsewhere.
Sorry I know that’s not much to go on but to trigger the error you must enter a private area that requires a password so I can’t post it here. And since it’s code that’s been tested and confirmed to be working and the code that’s throwing the error in the console is unfamiliar, the problem is obviously elsewhere.
Here’s what I mean, when I click on the messages in the console it takes me to unfamiliar code with variables like facade_registerInternal. That’s not my code. Can you please explain what’s going on?
When I came back to this days later, I was able to debug it because the problem of the error console showing me the wrong line number and wrong source code went away and it was showing me my own code again. So the problem seems to have corrected itself. Once it showed me where the error was coming from I was able to fix the problem.