-
Notifications
You must be signed in to change notification settings - Fork 799
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
Unhelpful uncaught error message upon trying to createElement undefined #1324
Closed
klarstrup opened this issue
Aug 20, 2019
· 4 comments
· May be fixed by novalina26/anchor#1, TheJ-Erk400/devaccownt#25, TheJ-Erk400/devaccownt#30, kalbroni7/fairy-wallet#2 or kalbroni7/fairy-wallet#4
Closed
Unhelpful uncaught error message upon trying to createElement undefined #1324
klarstrup opened this issue
Aug 20, 2019
· 4 comments
· May be fixed by novalina26/anchor#1, TheJ-Erk400/devaccownt#25, TheJ-Erk400/devaccownt#30, kalbroni7/fairy-wallet#2 or kalbroni7/fairy-wallet#4
Comments
I haven't thought about this simple case :) |
I'm a pretty simple case ;) |
@theKashey looks like it's not fixing the problem in all cases. I don't have an easily reproducible version of mine, but I've caught the call stack when the error happens. Looks like you need the same guard in |
Yep, |
This was referenced Aug 30, 2024
This was referenced Sep 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When doing
<A />
andA
is undefined for some reason, instead of failing with the typicalExpected behavior
The typical React warning
should be logged.
Actual behavior
An error that would lead one to believe that it is react-hot-loader bugging out, rather than the actual (typically) userland mistake.
Environment
React Hot Loader version: 4.12.11
node -v
: v11.11.0npm -v
: 6.7.0Operating system: macOS Mojave 10.14.5
Browser and version: Chrome 75
Reproducible Demo
Just rendering
<A/>
anywhere in the component tree gets you there. Callinghot(undefined)
also doesn't give a particularly useful error messages, but it's pretty easy to catch and probably a very rare mistake.The text was updated successfully, but these errors were encountered: