I decided to start using TypeScript, and so I set up a simple project. However, I seem to get some annoying linting errors which I do not know how to solve.
- Imports get the
Cannot find module 'X'. ts(2307)
error - On my linux machine
Promise
s andError
s get theCannot find name 'X'
error - On my linux machine
console.log/error
statements get a similar error and it recommends me to add"dom"
to thelib
intsconfig.json
, which doesn't help.
You can see the repo here (https://github.com/feareoc/chat). I'd appreciate any help for solve this problem!