0

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?enter image description here

faeghe
  • 13
  • 5

1 Answers1

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
  • 1
    actually 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