1127df4d6a
Make the app-render error less verbose in dev. Reuse `logErrorWithOriginalStack` from the dev server but hide frames from `node_modules`, `next/dist/compiled` and `node:internal` if we're in the app directory. Also removes `webpack-internal` from the frame file name. <details> <summary>Before</summary> ![image](https://user-images.githubusercontent.com/25056922/215798020-9aea3401-95dd-4f09-9e4c-26d822c0ce38.png) </details> <details> <summary>After, with source</summary> ![image](https://user-images.githubusercontent.com/25056922/216609074-66039be9-f599-47af-8c5d-b64a6be503ab.png) </details> <details> <summary>After, no source</summary> ![image](https://user-images.githubusercontent.com/25056922/216608526-46ada990-7e6f-4c9e-b1d3-347ebb03f6fa.png) </details> <details> <summary>For comparison, from `pages/`</summary> ![image](https://user-images.githubusercontent.com/25056922/216610761-dd87e5e6-1e9c-4b41-8adf-650cf15464e3.png) </details> Fixes NEXT-441 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --------- |
||
---|---|---|
.. | ||
acceptance | ||
acceptance-app | ||
api-cors-with-rewrite | ||
api-route-errors | ||
app-render-error-log | ||
basic | ||
client-dev-overlay | ||
correct-tsconfig-defaults | ||
dotenv-default-expansion | ||
gssp-notfound | ||
jsconfig-path-reloading | ||
middleware-warnings | ||
next-font | ||
project-directory-with-styled-jsx-suffix | ||
repeated-dev-edits | ||
tsconfig-path-reloading | ||
typescript-auto-install | ||
watch-config-file | ||
webpack-issuer-deprecation-warning |