Tsconfig Build:Argument for '--lib' option must be: 'es5'

Discussão em 'Angular' iniciado por AnxiousdeV, Novembro 8, 2024.

  1. AnxiousdeV

    AnxiousdeV Guest

    Attempting to build an angular 7 application in visual studio and receiving an exception regarding the tsconfig.json lib version.

    Below is the current tsconfig.json


    {
    "compileOnSave": false,
    "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "module": "es2015",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "importHelpers": true,
    "target": "es5",
    "typeRoots": [
    "node_modules/@types"
    ],
    "lib": [
    "es2018",
    "dom"
    ]
    }
    }

    Build Error


    Severity Code Description Project File Line Suppression State
    Error Build:Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'dom', 'dom.iterable', 'webworker', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string' DocumentLibraryWeb C:\Users\Tim\Source\Repos\project-sparkle\Athena\DocumentLibraryWeb\tsc

    Continue reading...

Compartilhe esta Página