#tsc not ignoring files

4 messages · Page 1 of 1 (latest)

brazen kestrel
#

tsc isnt ignoring files i set in my tsconfig

{
    "extends": "../../tsconfig.json",
    "compilerOptions": {
        "noEmit": false,
        "outDir": "dist/",
        "declaration": true,
        "declarationMap": true,
        "sourceMap": true
    },
    "include": ["src/**/*.ts"],
    "exclude": [
        "node_modules", 
        "src/cli/add/templates/**/*",
        "../sdk/**/*",
        "dist"
    ]
}

but im still getting errors

../sdk/src/middleware/index.ts:59:33 - error TS2304: Cannot find name '_CARRIER_LOOKUP_'.
placid lintel
#

@brazen kestrel exclude doesn't ignore files if they're explicitly imported.

#

If you want to suppress errors in a specific file you can throw // @ts-nocheck at the top of it.

brazen kestrel
#

the inability to put 2 and 2 together when debugging is crazy