Skip to content

noEmitOnError: false seems to be ignored -- use plugin option abortOnError #62

@TobiaszCudnik

Description

@TobiaszCudnik

What happens and why it is wrong

Semantic errors result in no emit. Adding noEmitOnError: false doesn't help.

Error:

[!] (rpt2 plugin) Error: /Users/.....ts(1286,2): semantic error TS2300 Duplicate identifier 'on'.

Versions

  • typescript: 2.7.2
  • rollup: 0.51.8
  • rollup-plugin-typescript2: 0.11.1

rollup.config.js

config.plugins[0] = typescript({
  target: 'es6',
  isolatedModules: true,
  module: 'es6',
  typescript: tsc,
  noEmitOnError: false
})

tsconfig.json

{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "declaration": true,
        "removeComments": false,
        "lib": ["es2017", "dom"],
        "sourceMap": true,
        "strict": true,
        "suppressImplicitAnyIndexErrors": true,
        "preserveConstEnums": true,
        "outDir": "build"
    },
    "include": [
        "src/**/*"
    ]
}

How can I force it to pass through? ts-ignore all of them? Fixing those errors is not an option at the moment. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: supportAsking for support with something or a specific use casesolution: already possibleThis is already possible / this feature already existssolution: invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions