Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue with react-jss #243
Issue with react-jss #243
Comments
Quoting from issue verekia#243: At the end of chapter 08, I've got some errors just after src/server/render-app.jsx edit: ``` Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. at invariant (/Users/davidfq/Code/js-stack/node_modules/fbjs/lib/invariant.js:44:15) at ReactCompositeComponentWrapper.instantiateReactComponent [as _instantiateReactComponent] (/Users/davidfq/Code/js-stack/node_modules/react-dom/lib/instantiateReactComponent.js:74:56) ... ``` It seems that <SheetsRegistryProvider> is not available in react-jss v7.1.0. I've just changed it to <JssProvider> and everything worked.
watadarkstar
mentioned this issue
|
I got the same issue with react-jss@7.2.0, and I changed to < JssProvider>, it works fine, thanks @davidfq |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

At the end of chapter 08, I've got some errors just after
src/server/render-app.jsxedit:It seems that
<SheetsRegistryProvider>is not available in react-jss v7.1.0. I've just changed it to<JssProvider>and everything worked.