StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Failed prop type: Invalid prop `component` #47

Open BalaRajendran opened 5 years ago

BalaRajendran commented 5 years ago

Hii Sir , When I loading my page in development mode it shows an error like this,

Warning: Failed prop type: Invalid prop component of type object supplied to Route, expected function. in Route (at App.js:24) in App (created by Context.Consumer) in Connect(App) (at src/index.js:18) in Provider (at src/index.js:18)

But In production its not show an error.I have check a lot of times.But I can't fix this error. Mail is also not send both in production and development mode. Please help me to fix

And my git Repository link : https://gitlab.com/BalaRajendran/emaily

screenshot 140

eponymz commented 5 years ago

https://gitlab.com/BalaRajendran/emaily/blob/master/client/src/index.js#L18

That , document.querySelector statement might be causing it.