Esc Official
Esc Official

Reputation: 99

TypeScript error in undefined(undefined,undefined): Cannot find type definition file for 'src'. TS2688

So I'm pretty new to typescript. This is what my tsconfig.json file looks like, I don't even know where that "examples" come from

This is what errors I get in browser

enter image description here

This is my package.json

enter image description here

Upvotes: 4

Views: 1709

Answers (1)

Esc Official
Esc Official

Reputation: 99

Ok so I found what was the error with the help of this page, the problem was that I had a "@types/" : "fortawesome/react-fortawesome" specified which was not a @type

Here is how it looks like in package.json

So the solution was to remove the @types by doing "yarn remove @types/

Upvotes: 3

Related Questions