Skip to content

Commit

Permalink
Merge pull request #12537 from pawelskowronek/patch-1
Browse files Browse the repository at this point in the history
Add missing instruction if you are adding typescript
  • Loading branch information
matrush authored Jul 5, 2022
2 parents a45ee3b + a7212db commit c378572
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docusaurus/docs/adding-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ or
yarn add typescript @types/node @types/react @types/react-dom @types/jest
```

Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and **restart your development server**!
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).

Finally **restart your development server**!

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).

Expand Down

0 comments on commit c378572

Please sign in to comment.