-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Warn when the type of a prop isn't a constructor #9224
Comments
can i work on this? |
Yes :) |
raised #9227 |
Hey @posva I would love to aid with any good first issues in the future if needed :) |
Yeah, it contains tests and looks better overall but I haven't checked it yet 🙂 |
Gotcha, I'll keep my eye out there if it needs any modifications. |
I had this error just now. how to fix? |
Use a constructor like Number, String, Function, etc. |
hey can I work on this first time issue? im new at working on Opensource projects and I would love to give it a try starting with this issue |
Would it be okay for me to work on this issue? |
the "solution" doesn't help much with... |
What problem does this feature solve?
It suppose better error handling for prop types errors.
Steps to reproduce error:
Error log is not evident and it is difficult to understand the source of problem (first time with this error anyway).
What does the proposed API look like?
Error message in this case may look like:
"Incorrect prop type 'exampleProp' at:123 (where 123 is example string position in the code)"
The text was updated successfully, but these errors were encountered: