Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
hot module reloading not working for file changes in child components of _app.js (nextjs)

i have tried out multiple options including reinstalling modules, changing next.config.js as follows

assetPrefix: process.env.NODE_ENV==='production'?"":"/"

and also i have tried hot reload not working

I also went through this closed issue on github,which suggested correctly naming file names, but in nextjs, the _app.js file is always booting up irrespective of the route, so i placed some component inside it to check for login authentication. the logic is that if i am logged in the index.js would come up or else other component that is present on the route. this way i could prevent private routes to be opened.

Also If I see the compiler logs i am able to see

compiling /_error(client and server)

which is not clear to me at all. How to be able to log the details with this error as i think this might one of the reason behind hmr not working.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!