Skip to content

Commit c378572

Browse files
authored
Merge pull request #12537 from pawelskowronek/patch-1
Add missing instruction if you are adding typescript
2 parents a45ee3b + a7212db commit c378572

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docusaurus/docs/adding-typescript.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ or
3737
yarn add typescript @types/node @types/react @types/react-dom @types/jest
3838
```
3939

40-
Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and **restart your development server**!
40+
Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and create tsconfig.json if it's not in the root of your project [`tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
41+
42+
Finally **restart your development server**!
4143

4244
Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. For advanced configuration, [see here](advanced-configuration.md).
4345

0 commit comments

Comments
 (0)