Creating `pages/_app.js` should not require a dev server restart
See original GitHub issueBug report
Describe the bug
Creating pages/_app.js
currently requires the user reboot their dev server.
To Reproduce
- Start a Next.js application without
pages/_app.js
(next dev
). - Create
pages/_app.js
. - Bug: No Fast Refresh to introduce the App Component.
- Refresh the page from server.
- 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Removed good first issue as it’s significantly complicated until we have #13341
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.