mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
docs: add baseUrl to example tsconfig (#7884)
tsconfig requires compiler options with base url Without base url, TS errors appear such as `Cannot find module '@site/src/components/...`
This commit is contained in:
parent
7ab2bd3234
commit
01ac2e0fca
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ Then add `tsconfig.json` to your project root with the following content:
|
|||
|
||||
```json title="tsconfig.json"
|
||||
{
|
||||
"extends": "@tsconfig/docusaurus/tsconfig.json"
|
||||
"extends": "@tsconfig/docusaurus/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue