TS5054

error TS5054: A ‘tsconfig.json’ file is already defined at: ‘C:/dev/bennycode/ts-node-starter/tsconfig.json‘.

Broken Code ❌

1
npx tsc --init

Fixed Code ✔️

You cannot initialize a new TypeScript compiler configuration when there is one already present. You have to delete the existing file first.