0

To start things off, I've successfully git cloned and ran this repo on my machine (https://github.com/creativetimofficial/light-bootstrap-dashboard-react).

At first it didn't work because I didn't run npm install --save-dev node-sass-chokidar but again, I can run it successfully on my machine after doing so.

When I run npm start, the dashboard and contents appear just fine but upon making any changes to it, like changing some text, it doesn't reflect on the browser at all. It doesn't even auto-reload which's what it's supposed to do. Even if I manually press cmd + r and/or cmd + shift + r, nothing changes.

What could possibly be wrong and how can I rectify this?

Mark Amery
  • 143,130
  • 81
  • 406
  • 459
greyskies
  • 261
  • 4
  • 13

1 Answers1

0

Ok I think I see the problem. You have to re-run your app. The fact that you're being asked if you want to run on a different port means the original application (the one without your changes) is still running. In the terminal where you originally ran npm start use ctrl-c to exit the server and then npm start again and you should see your changes reflected.

schu34
  • 965
  • 7
  • 25
  • hmm, it looks like my changes are indeed reflected when updating some text in a component in the project, for example the `Dashboard.jsx` component. However, if I try to update text in `tutorial-components.html`, then nothing changes. Even if I comment the entire `tutorial-components.html` out, it still appears in the browser like nothing happened. – greyskies Jan 19 '19 at 16:42
  • `tutorial-components.html` is in the Documentation folder so it probably isn't being run with `npm start` are you able to see your changes when you update things in the `public` and `src` folders? – schu34 Jan 19 '19 at 21:50