-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Bug: Wrong address for empty string message #31951
Comments
At first I reported it to the MUI team: mui/material-ui#44911 |
bro your video quality is not good so i can't see your good easily but this may be happening due to by passing empty string to src attribute, In your code you are not passing empty string but error is in line 31 so check that item that you are passing or item that you're setting, that item is becoming empty string somehow. |
To address the issue of React providing misleading addresses when an empty string is passed to the |
@anukaal but the bug will still be there. Right? |
Steps to reproduce
I don't know where the problem could be. Therefore I can't create an MRE.
This is a video I captured:
WrongEmptyStringAddress.mp4
The point is, the message complaints that:
When I open that message to see the stack, it guides me to a component of mine called
ToggleView
and the line specified contains this code:And the
ToggleView.jsx
does not containsrc
attribute at all in it. Of course, I havesrc
in many other places. But how can I know which one is causing the problem? The address is wrong.Current behavior
React provides misleading addresses that do not help at all in finding the problem, and litters the console for long time until we find the problem accidentally or through heuristics (trial & error).
Expected behavior
React should provide accurate addresses.
Your environment
The text was updated successfully, but these errors were encountered: