bananaoomarang / isomorphic-redux

Isomorphic Redux demo, with routing and async actions
https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
MIT License
455 stars 87 forks source link

Objects are not valid as a React child (found: object with keys {}).... #53

Closed veeracs closed 8 years ago

veeracs commented 8 years ago

Getting following error in dev mode and minification error in prod mode.

Objects are not valid as a React child (found: object with keys {}). If yo u meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of TodosView.

bananaoomarang commented 8 years ago

I'm afraid I can't reproduce on my machine. It could be to do with your Node version, I suppose (I'm on 5.8.0), it also looks like it could be an inconsistency in how Babel is doing the transform.

You could try rm -rfing node_modules and re-installing the dependencies.

Also make sure your TodosView code is the same as the one in the repo, there could be a typo there.

veeracs commented 8 years ago

Thanks, closing the issue, rm -rf node_modules and npm install helped.