Unverified Commit ef73798e authored by Lachlan Campbell's avatar Lachlan Campbell Committed by GitHub

Docs: Fix invalid tsconfig importSource syntax (#42465)

parent 428624f6
...@@ -198,14 +198,14 @@ First, update to the latest version of Next.js: `npm install next@latest`. Then, ...@@ -198,14 +198,14 @@ First, update to the latest version of Next.js: `npm install next@latest`. Then,
### importSource ### importSource
Next.js will automatically detect `jsxImportSource` in `jsconfig.json` or `tsconfig.json` and apply that. This is commonly used with libraries like Theme UI. Next.js will automatically detect `jsxImportSource` in `jsconfig.json` or `tsconfig.json` and apply that. This is commonly used with libraries like [Theme UI](https://theme-ui.com).
First, update to the latest version of Next.js: `npm install next@latest`. Then, update your `jsconfig.json` or `tsconfig.json` file: First, update to the latest version of Next.js: `npm install next@latest`. Then, update your `jsconfig.json` or `tsconfig.json` file:
```js ```js
{ {
"compilerOptions": { "compilerOptions": {
"jsxImportSource": 'preact' "jsxImportSource": "theme-ui"
} }
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment