-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property '_' of undefined #2938
Comments
Welcome to the issue tracker, @chin14. It is OK to be new. The error message means that somewhere, there is a line being executed that contains an expression that looks like How did you reach the conclusion that the error is triggered inside the You can pinpoint the exact location of the problem by stepping through your code with a debugger. This should enable you to identify what Please try stepping with the debugger and then let us know what you found. |
Thanks! @jgonggrijp I never really used a debugger, and this is also my first React project. My conclusion is based on the error message I got, there is a part where it says this is a part of the error. I figured that could be it. Maybe I'm wrong, I really don't know, haha. Anyway I tried a lot of things, I also removed this line of code:
Now the error is gone, but I don't know how to replace this line. Thanks for the Link, I will look into it and maybe start using debugger. |
If removing those lines silences the error, that seems to suggest the problem is somewhere in those lines (i.e., either in |
@chin14 Did you find out what was causing the problem? Did it have anything to do with Underscore? |
This is my first time posting a problem here, so if I'm doing something wrong, sorry!
I'm getting this error and I don't quite get it.
Here I am again with a problem I can't solve ! I'm getting this error and I don't quite get it.
enter image description here
After opening the DOM and reading the whole error and a lot of hours spend on Google, the only thing I got was that it looks like the error is triggered by this line of code:
const [user, setUser] = useState(null)
This is the Code where this line is :
I'm making an Instagram Clone and if you need any other code I have, please tell me because I don't know what you all need to help me.
The text was updated successfully, but these errors were encountered: