Reputation: 547
I created my project using npx create-next-app new-app
. Then started it by npm run dev
.
Then I deleted everything in the div and now my index.js looks like this:
import styles from '../styles/Home.module.css'
export default function Home() {
return (
<div className={styles.container}>
Hi
</div>
)
}
But in the browser, it seems like the initial next.js page.
Why isn't the changes taking effect?
Upvotes: 1
Views: 1539
Reputation: 2341
Try this:
1- Remove .next
folder
2- run npm run build
3-now run npm run dev
or npm run start
sometimes Next js
has problems with its cached files
Upvotes: 1