question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating `pages/_app.js` should not require a dev server restart

See original GitHub issue

Bug report

Describe the bug

Creating pages/_app.js currently requires the user reboot their dev server.

To Reproduce

  1. Start a Next.js application without pages/_app.js (next dev).
  2. Create pages/_app.js.
  3. Bug: No Fast Refresh to introduce the App Component.
  4. Refresh the page from server.
  5. Bug: Still no App Component.

Expected behavior

The Next.js dev server should automatically recognize the creation of a custom app and work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
timneutkenscommented, Jun 24, 2020

Removed good first issue as it’s significantly complicated until we have #13341

0reactions
balazsorban44commented, Jan 27, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Have to restart the Next.js dev server to view any changes
When I create a basic next app using npx create-next-app@latest , and then run the dev server using npm run dev , updating...
Read more >
Updating app.js causes webpack dev server to report error ...
making a simple text change to app. js in the template folder causes an error to occur in webpack dev server.
Read more >
How To Restart Your Node.js Apps Automatically with nodemon
You can restart the process at any time by typing rs and hitting ENTER . Once you make the changes to package. json...
Read more >
Don't use nodemon, there are better ways! | by Kevin Simper
I have used nodemon a lot, it was my solution for a long time to not manually restart my node.js project. Then webpack...
Read more >
Top 10 Mistakes Node.js Developers Make - AirPair
Next we will create a simple Express server that renders a home view on the front page: var express = require('express'); var app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found