FullstackReactCode icon indicating copy to clipboard operation
FullstackReactCode copied to clipboard

Failed prop type: Invalid prop `component`

Open BalaRajendran opened this issue 7 years ago • 1 comments

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

BalaRajendran avatar Jan 14 '19 07:01 BalaRajendran

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

That , document.querySelector statement might be causing it.

eponymz avatar Jan 16 '19 02:01 eponymz