PatrickAlphaC / nextjs-smartcontract-lottery-fcc

60 stars 87 forks source link

Changes on code don't show in browser #32

Open marcjaner opened 1 year ago

marcjaner commented 1 year ago

If I run yarn dev or yarn run dev and I then modify my code (let's say I change some HTML) and then save the changes they don't appear in the browser (my localhost), even if I reload the page.

I've noticed Patrick is able to save the file and then reload the browser to be sable to visualize the new changes and I was wondering how?

Thanks

danielvichinyan commented 3 months ago

Make sure that you have the following in your package.json:

"scripts": {
    "test": "jest",
    "dev": " next dev -p 8000",
    "build": "next build",
    "start": "next start",
  }

Also, make sure your import statement are all good. Check for typos, miss-spelling, commas, dots or quotes. For instance:

import Home from '../Components/home';

                vs

import Home from '../Components/Home';