rsnext/test/development/acceptance-app
Hannes Bornö 50caf8b191
Add helpful error for createContext used in Server Components (#43747)
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)
2022-12-11 20:46:29 -06:00
..
__snapshots__ Add helpful error for createContext used in Server Components (#43747) 2022-12-11 20:46:29 -06:00
fixtures/default-template Refactor hot-reloader client for app (#41598) 2022-10-22 09:56:48 +02:00
helpers.ts Unhandled errors and rejections opens as minimized in app dir error overlay (#43844) 2022-12-08 11:30:27 +00:00
ReactRefresh.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
ReactRefreshLogBox-builtins.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
ReactRefreshLogBox-scss.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
ReactRefreshLogBox.test.ts Unhandled errors and rejections opens as minimized in app dir error overlay (#43844) 2022-12-08 11:30:27 +00:00
ReactRefreshLogBoxMisc.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
ReactRefreshModule.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
ReactRefreshRegression.test.ts Revert: 'Minimized runtime errors in app dir' (#43648) 2022-12-02 20:51:23 +01:00
ReactRefreshRequire.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
server-components.test.ts Add helpful error for createContext used in Server Components (#43747) 2022-12-11 20:46:29 -06:00