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
Hi all,
I don't understand how the hot-reload mechanism works.
When I use Chrome in normal mode any changes to the visual aspect (.scss files) or the business logic (I tried to add a silly <h1> just before the {config.app.title} in the Home.js file) I made aren't reflected (even if I clear the cache or I do a hard refresh)
However when I use Chrome in incognito mode all the changes are correctly shown but with some errors into the console
react.development.js:247 Warning: React.createElement: typeisinvalid--expectedastring(forbuilt-incomponents)oraclass/function(forcompositecomponents)but got: object.Checkyourcodeatclient.js:146.warningWithoutStack @ react.development.js:247checkPropTypes.js:19Warning: Failedchildcontexttype: Thechildcontext`app`ismarkedasrequiredin`withContext(Provider)`,butitsvalueis`undefined`.inwithContext(Provider)(atclient.js:145)printWarning @ checkPropTypes.js:19react-dom.development.js:62UncaughtError: Elementtypeisinvalid: expectedastring(forbuilt-incomponents)oraclass/function(forcompositecomponents)butgot:object.
atinvariant(react-dom.development.js:55)atcreateFiberFromElement(react-dom.development.js:9966)atreconcileSingleElement(react-dom.development.js:12922)atreconcileChildFibers(react-dom.development.js:12979)atreconcileChildren(react-dom.development.js:13383)atfinishClassComponent(react-dom.development.js:13557)atupdateClassComponent(react-dom.development.js:13501)atbeginWork(react-dom.development.js:14090)atperformUnitOfWork(react-dom.development.js:16416)atworkLoop(react-dom.development.js:16454)react-dom.development.js:14550Theaboveerroroccurredinthe<Provider>component:
inProvider(createdbywithContext(Provider))inwithContext(Provider)(atclient.js:145)Consideraddinganerrorboundarytoyourtreetocustomizeerrorhandlingbehavior.Visit https://fb.me/react-error-boundaries to learn more about error boundaries.logCapturedError @ react-dom.development.js:14550react-dom.development.js:55Uncaught(inpromise) Error: Element typeisinvalid: expectedastring(forbuilt-incomponents)oraclass/function(forcompositecomponents)butgot: object.atinvariant(react-dom.development.js:55)atcreateFiberFromElement(react-dom.development.js:9966)atreconcileSingleElement(react-dom.development.js:12922)atreconcileChildFibers(react-dom.development.js:12979)atreconcileChildren(react-dom.development.js:13383)atfinishClassComponent(react-dom.development.js:13557)atupdateClassComponent(react-dom.development.js:13501)atbeginWork(react-dom.development.js:14090)atperformUnitOfWork(react-dom.development.js:16416)atworkLoop(react-dom.development.js:16454)
Thanks
The text was updated successfully, but these errors were encountered:
Hi all,
I don't understand how the hot-reload mechanism works.
When I use Chrome in normal mode any changes to the visual aspect (.scss files) or the business logic (I tried to add a silly <h1> just before the {config.app.title} in the Home.js file) I made aren't reflected (even if I clear the cache or I do a hard refresh)
However when I use Chrome in incognito mode all the changes are correctly shown but with some errors into the console
Thanks
The text was updated successfully, but these errors were encountered: