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

Created on 9 Jun 2020  ·  3Comments  ·  Source: vercel/next.js

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.

bug 5 p2

Most helpful comment

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

All 3 comments

Can you give some hint on how can we achieve this?

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

understandable, thanks

Was this page helpful?
0 / 5 - 0 ratings