Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload's behaviour #518

Open
GabrieleRomeo opened this issue Jan 22, 2019 · 0 comments
Open

Hot reload's behaviour #518

GabrieleRomeo opened this issue Jan 22, 2019 · 0 comments

Comments

@GabrieleRomeo
Copy link

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: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check your code at client.js:146.
warningWithoutStack @ react.development.js:247
checkPropTypes.js:19 Warning: Failed child context type: The child context `app` is marked as required in `withContext(Provider)`, but its value is `undefined`.
    in withContext(Provider) (at client.js:145)
printWarning @ checkPropTypes.js:19
react-dom.development.js:62 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 (react-dom.development.js:55)
    at createFiberFromElement (react-dom.development.js:9966)
    at reconcileSingleElement (react-dom.development.js:12922)
    at reconcileChildFibers (react-dom.development.js:12979)
    at reconcileChildren (react-dom.development.js:13383)
    at finishClassComponent (react-dom.development.js:13557)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)
react-dom.development.js:14550 The above error occurred in the <Provider> component:
    in Provider (created by withContext(Provider))
    in withContext(Provider) (at client.js:145)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.development.js:14550
react-dom.development.js:55 Uncaught (in promise) Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
    at invariant (react-dom.development.js:55)
    at createFiberFromElement (react-dom.development.js:9966)
    at reconcileSingleElement (react-dom.development.js:12922)
    at reconcileChildFibers (react-dom.development.js:12979)
    at reconcileChildren (react-dom.development.js:13383)
    at finishClassComponent (react-dom.development.js:13557)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant