You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repo: https://github.com/colebillys19/simple-storybook
By default, Material UI styles get applied after all other styles. In order to inject them first, their docs instruct to wrap your component tree in a StylesProvider and pass it the injectFirst prop. After doing this and starting up the storybook I get the following error:
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, or you might have mixed up default and named imports.
Check the render method of `storyFn`.
at http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:130394:34
at createFiberFromTypeAndProps (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:130397:13)
at createFiberFromElement (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:130418:15)
at reconcileSingleElement (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:120888:23)
at reconcileChildFibers (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:120945:35)
at reconcileChildren (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:123049:28)
at mountIndeterminateComponent (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:123756:5)
at beginWork$1 (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:124844:16)
at HTMLUnknownElement.callCallback (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:106705:14)
at Object.invokeGuardedCallbackDev (http://localhost:9009/vendors~main.dde01deb994fa36497d0.bundle.js:106755:16)
Take a look at .storybook/config.js - I have working code (that doesn't include StylesProvider) included.
Repo: https://github.com/colebillys19/simple-storybook
By default, Material UI styles get applied after all other styles. In order to inject them first, their docs instruct to wrap your component tree in a
StylesProvider
and pass it theinjectFirst
prop. After doing this and starting up the storybook I get the following error:Take a look at
.storybook/config.js
- I have working code (that doesn't include StylesProvider) included.Expected behavior
No error should be thrown.
Screenshots
System:
The text was updated successfully, but these errors were encountered: