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
I'm in the middle of a rush buildout of a product, so I don't have the time to dig in deep on this yet, but I wanted to make sure to register the issue. When I rewrote my app to use the new React.createContext approach instead of the legacy contextTypes, I started getting the following error:
Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at invariant (invariant.js:42)
at createFiberFromElement (react-dom.development.js:5753)
at reconcileSingleElement (react-dom.development.js:7531)
at reconcileChildFibers (react-dom.development.js:7635)
at reconcileChildrenAtExpirationTime (react-dom.development.js:7756)
at reconcileChildren (react-dom.development.js:7747)
at mountIndeterminateComponent (react-dom.development.js:8075)
at beginWork (react-dom.development.js:8221)
at performUnitOfWork (react-dom.development.js:10224)
at workLoop (react-dom.development.js:10288)
The first non-React file in which the error appears is in node_modules/@sunny-g/cycle-react-driver/es2015/dom.js, line 95 - specifically when setState is called. At that line, the following message is displayed:
Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
Please check the code for the ReactCycleComponent component.
Once the product build has settled, I will be coming back to this, but if you know an easy fix in the meantime, that would be wonderful.
Thanks!
The text was updated successfully, but these errors were encountered:
Relevant: https://reactjs.org/docs/context.html as of v16.3.0
I'm in the middle of a rush buildout of a product, so I don't have the time to dig in deep on this yet, but I wanted to make sure to register the issue. When I rewrote my app to use the new
React.createContext
approach instead of the legacycontextTypes
, I started getting the following error:The first non-React file in which the error appears is in node_modules/@sunny-g/cycle-react-driver/es2015/dom.js, line 95 - specifically when
setState
is called. At that line, the following message is displayed:Once the product build has settled, I will be coming back to this, but if you know an easy fix in the meantime, that would be wonderful.
Thanks!
The text was updated successfully, but these errors were encountered: