I'm using Next.js dynamic url and after adding [id].js my hot reloading stoped even I should stop npm and restart it. does any one have any idea about my problem?
Asked
Active
Viewed 328 times
0

faeghe
- 13
- 5
-
Open an issue in the official repo: https://github.com/vercel/next.js/issues – felixmosh Jul 01 '20 at 12:21
1 Answers
0
Make sure to avoid using capitalized letters in your pages
folder. Try changing Projects
folder to projects
. You can refer to this link

blankart
- 716
- 5
- 13
-
by changing that I get this error :./pages/projects/[id].js Module not found: Can't resolve './node_modules/next/router', then I upgraded my yarn to 2.0.0 but nothing happened. – faeghe Jul 02 '20 at 06:13
-
1actually problem solved with using project instead of Project and after that upgrading my yarn and removing node modules and re installing it. using this type of address : 'next/router' instead of 'node_modules/next .... ' . – faeghe Jul 02 '20 at 06:40