search

Home  >  Q&A  >  body text

Title rewritten as: My React app updates in real time on my Macbook, but not on my Windows PC

<p><h1><strong>On Windows devices: </strong></h1> <p>When I run <code>react-scripts start</code></p> <p>"<strong>webpack compiled successfully</strong>" is displayed in the terminal. When I make changes to the code and save, the application does not update with the new changes at runtime. </p> <h1><strong>On Windows devices: </strong></h1> <p>I tried it in both powershell and wsl (ubuntu 18.04) terminal, using node v16.19.1</p> <p>When I run <code>react-scripts start</code>, my react app compiles successfully But when I implement the changes, it doesn't update directly. When I terminate the terminal and rerun the script, I can see my changes but again it doesn't update at runtime. </p> <p><strong>(No results)</strong>I have removed node_modules and reinstalled all dependencies. </p> <p><strong>(no results)</strong>I started with ubuntu 22.02 and then downgraded to 18.04</p> <p><strong>(No result)</strong>I also downgraded node 18 to 16</p> <p>The project is written using .jsx</p> <h1>On my Macbook and expected results</h1> <p>When I run <code>react-scripts start</code>, my react app compiles successfully When I make changes and save, it updates at runtime. </p> <h1>Question</h1> <p>I would like to know why my react app is not working at runtime on my windows device and possible solutions. </p>
P粉633309801P粉633309801437 days ago518

reply all(1)I'll reply

  • P粉680487967

    P粉6804879672023-09-04 00:31:19

    I ran into a similar problem and found a fairly simple solution. Turns out I didn't save my work. Make sure autosave is turned on in the code editor. It compiles my React project after I make any changes and displays those changes on the browser.

    reply
    0
  • Cancelreply