react-isomorphic-starterkit icon indicating copy to clipboard operation
react-isomorphic-starterkit copied to clipboard

Required context `insertCss` was not specified in...

Open elverskog opened this issue 8 years ago • 3 comments

In browser console: Warning: Failed Context Types: Required context insertCss was not specified in WithStyles(Component). Check the render method of Main.warning @ (program):45 localhost/:62 Uncaught TypeError: Cannot read property 'apply' of undefined

elverskog avatar Mar 13 '16 02:03 elverskog

Awesome, you got there before I did.

@RickWong - This occurs on clean install, Chrome and Firefox, in addition to browser console errors (and seemingly having broken HMR) it also produces errors in terminal of: Warning: Failed Context Types: Invalid child context styles of type object supplied to StyleProvider, expected array.

warning.js?85a7:45 Warning: Failed Context Types: Required context insertCss was not specified in WithStyles(Component). Check the render method of Main.

Rob-pw avatar Mar 22 '16 19:03 Rob-pw

@elverskog - In the meantime reverting to commit d2cb263c37310c41c81b48f609bb40779f52d0c0 will resolve the issue.

If you've not changed anything: git checkout -f d2cb263c37310c41c81b48f609bb40779f52d0c0

Rob-pw avatar Mar 22 '16 19:03 Rob-pw

according to https://github.com/kriasoft/isomorphic-style-loader/issues/5#issuecomment-171620472 created a pull request https://github.com/RickWong/react-isomorphic-starterkit/pull/120

pr0fedt avatar Mar 23 '16 02:03 pr0fedt