Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Changes on code don't show in browser #32

Open
marcjaner opened this issue Feb 4, 2023 · 1 comment
Open

Changes on code don't show in browser #32

marcjaner opened this issue Feb 4, 2023 · 1 comment

Comments

@marcjaner
Copy link

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
Copy link

danielvichinyan commented Jun 4, 2024

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';

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

No branches or pull requests

2 participants