Code Monkey home page Code Monkey logo

bug-hot-reload's Introduction

Bug - React Hot Reload

React Hot Reload isn't working correctly. It reloads after a change is made to a file, but then the page throws an error and is unresponsive. The only solution is to manually refresh the page to get it working again.

I've seen the issue in a number of dependency versions over the past two days of debugging. Not certain what the root cause is.

Additionally it appears that the WebSocket connection is hardcoded to localhost:3000 too... This is a secondary issue, but one that keeps showing up and blocks debugging the above issue. Perhaps they are related...

Run App

Run the docker-compose command to get up and running.

docker-compose up -d

View page http://localhost:5000.

Fix for local development

If you run the app locally instead of a container you can get it working with the following hack in the index.tsx file. This hack doesn't solve the container issue.

window.process = {} as any;

bug-hot-reload's People

Contributors

fosol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.