Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Improve error messages #36

Closed
davidnaas opened this issue Sep 1, 2016 · 5 comments
Closed

Improve error messages #36

davidnaas opened this issue Sep 1, 2016 · 5 comments

Comments

@davidnaas
Copy link
Contributor

Currently when developing and something is wrong in a component i get the following error:

bundle.js:8859 Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `AppContainer`.

bundle.js:8400 Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `AppContainer`.

It's incredibly hard to find the actual error which usually is something simple. It would speed up development a lot if it was possible to make the error messages more explicit.

@davidnaas
Copy link
Contributor Author

After a brief investigation I've come to the conclusion that it's the hot reloading causing it. Reverting that commit brings back normal error messages.

@kenwheeler
Copy link
Contributor

hmm, I wonder if we can catch and fix that

@davidnaas
Copy link
Contributor Author

Not sure how. I'm no expert in webpack and hot reloading I'm afraid

@kenwheeler
Copy link
Contributor

I'll look into it

@kenwheeler
Copy link
Contributor

Closing, as this is react reporting unrelated to this library

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants