Beelzebub
Beelzebub

Reputation: 13

Error Generating New CLI with oclif: Issues with Subsequent variable declarations must have the same type

I'm working on creating a new CLI tool using the oclif framework and TypeScript, but I’m running into issues when trying to build the project

After generating cli it errors out Then trying to manually npm run build(shx rm -rf dist && tsc -b) it also error out

tsconfig is the default enter image description here

What could be causing these TypeScript errors with @types/jest, and how can I resolve them to successfully build my oclif CLI project? enter image description here Any insights or suggestions would be greatly appreciated!

Upvotes: 0

Views: 64

Answers (1)

Beelzebub
Beelzebub

Reputation: 13

Nevermind solve it, by adding "skipLibCheck": true in my tsconfig.json

Also Adding mocha chai node as types in tsconfig.json fixes the error enter image description here

Dont know why this 3 errored out to begin with enter image description here

Upvotes: 0

Related Questions