Destroying TypeScript in Visual Studio Code

180 Views Asked by At

I'm working using Meteor/React using Visual Studio Code but I cannot get rid of those errors:

Eg.: visual studio code

Cannot find module 'meteor/mongo'

(see screenshot: Cannot find module ...)

If I write at the beginning of the file

// @ts-nocheck

The error disappear

My question here is, why TS? does this TypeScript means?? I'm not doing anything in TypeScript. Im writing Javascript ES6 Code. Here my jsconfig.json:

{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "checkJs": true
    },
    "exclude": [
        "node_modules",
        "**/node_modules/*",
        "bower_components"
    ]
}

How to delete/disable/destroy TypeScript ??

1

There are 1 best solutions below

0
On

It's just using tsserver to validate your Javascript imports. So it's really Javascript validation.

If you don't want it you can remove your checkJs parameter.