50caf8b191
Format runtime server errors similarly to how build errors [are formatted](https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/format-webpack-messages.js). Add helpful message when createContext is used in Server Components. ## 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) |
||
---|---|---|
.. | ||
api-utils | ||
base-http | ||
dev | ||
lib | ||
response-cache | ||
send-payload | ||
web | ||
accept-header.ts | ||
app-render.tsx | ||
base-server.ts | ||
body-streams.ts | ||
config-schema.ts | ||
config-shared.ts | ||
config-utils.ts | ||
config.ts | ||
crypto-utils.ts | ||
font-utils.ts | ||
get-app-route-from-entrypoint.ts | ||
get-page-files.ts | ||
get-route-from-entrypoint.ts | ||
google-font-metrics.json | ||
htmlescape.ts | ||
image-optimizer.ts | ||
initialize-require-hook.ts | ||
internal-utils.ts | ||
load-components.ts | ||
match-bundle.ts | ||
next-server.ts | ||
next-typescript.ts | ||
next.ts | ||
node-polyfill-fetch.js | ||
node-polyfill-web-streams.js | ||
node-web-streams-helper.ts | ||
optimize-amp.ts | ||
post-process.ts | ||
render-result.ts | ||
render.tsx | ||
request-meta.ts | ||
require.ts | ||
router.ts | ||
serve-static.ts | ||
server-route-utils.ts | ||
utils.ts | ||
web-server.ts |