- Run
npm i --force
(use--force
due to peer dependency issue with TypeScript v5.x.x and[email protected]
) (issue) - Make sure in
tsconfig
"strict": false
and"incremental": true
- Run
npx tsc
. Make sure there are no errors, and thattsconfig.tsbuildinfo
file is created in the root of the app - Run
npm run start
. Make sure the app runs without errors, and then stop the app - Rename
Pokemon
type toPokemon2
inpokemon-queries.ts
file - Run
npx tsc
. There should be an error:
- Rename
Pokemon2
type back toPokemon
- Run
npx tsc
. There should be no errors - Run
npm run start
- Rename
Pokemon
type toPokemon2
inpokemon-queries.ts
file. There should be an error:
- Rename
Pokemon2
type back toPokemon
- Change
incremental
tofalse
intsconfig
- Run
npm run start
- Rename
Pokemon
type toPokemon2
inpokemon-queries.ts
file. There should be the same error as in Step 10 - Rename
Pokemon2
type back toPokemon
- In
tsconfig
, changestrict
totrue
andincremental
totrue
. Perform Steps 5 through 14, but make sure that there are no errors this time