You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom pages/_app file and it is removed during development it can cause unexpected errors as seen in the below screen shot. We should handle this gracefully and prevent confusing errors.
screenshot
A custom _app also requires restart if added after the dev server was started which could be improved.
The text was updated successfully, but these errors were encountered:
This adds the fallback webpack alias handling to handle a custom `_app` or `_document` being removed in development gracefully.
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`
Fixes: #27888
This is a follow-up to #28227 to ensure `_app` and `_document` HMR correctly when you start the dev server and then add `_app` and `_document`.
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`
x-ref: #27888
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.
vercel
locked as resolved and limited conversation to collaborators
Jan 27, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using a custom
pages/_app
file and it is removed during development it can cause unexpected errors as seen in the below screen shot. We should handle this gracefully and prevent confusing errors.screenshot
A custom
_app
also requires restart if added after the dev server was started which could be improved.The text was updated successfully, but these errors were encountered: