jsconfig.json gives ts errors jsconfig.json gives ts errors vue.js vue.js

jsconfig.json gives ts errors


After trying several solutions, I have just added "exclude": ["node_modules"] and restarted VScode. The error went away.


Try to install and rebuild project, Hope this will help,

 npm install --save @types/dotenv


I ran into this and just exiting and relaunching VSCode (from the icon) seemed to fix it.

I'd originally started via code . so I'm thinking perhaps the instance with the error had picked up a weird env var from my terminal.