Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't emit JS on TS syntax error even when noEmitOnError is false -- use plugin option abortOnError #206

Closed
videni opened this issue Feb 18, 2020 · 2 comments
Labels
kind: support Asking for support with something or a specific use case problem: stale Issue has not been responded to in some time solution: already possible This is already possible / this feature already exists solution: duplicate This issue or pull request already exists

Comments

@videni
Copy link

videni commented Feb 18, 2020

I'd like to emit javascript even there is TS syntax error.

tsconfig.json

{
  "include": ["src", "types"],
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "lib": ["dom", "esnext"],
    "importHelpers": true,
    "declaration": true,
    "sourceMap": true,
    "rootDir": "./",
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "noImplicitThis": true,
    "alwaysStrict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "allowSyntheticDefaultImports": true,
    "moduleResolution": "node",
    "baseUrl": "./",
    "noEmitOnError": false,
    "paths": {
      "*": ["src/*", "node_modules/*"]
    },
    "jsx": "react",
    "esModuleInterop": true
  }
}

image

@ezolenko
Copy link
Owner

Try setting abortOnError plugin option as well.

@agilgur5 agilgur5 added the solution: already possible This is already possible / this feature already exists label May 8, 2022
@agilgur5 agilgur5 changed the title can't emit javascript files on TS syntax error even we set noEmitOnError to false can't emit JS on TS syntax error even when noEmitOnError is false May 8, 2022
@agilgur5
Copy link
Collaborator

agilgur5 commented May 8, 2022

Duplicate of #62

@agilgur5 agilgur5 marked this as a duplicate of #62 May 8, 2022
@agilgur5 agilgur5 added solution: duplicate This issue or pull request already exists kind: support Asking for support with something or a specific use case labels May 8, 2022
Repository owner locked as resolved and limited conversation to collaborators May 8, 2022
@agilgur5 agilgur5 added the problem: stale Issue has not been responded to in some time label May 8, 2022
@agilgur5 agilgur5 changed the title can't emit JS on TS syntax error even when noEmitOnError is false can't emit JS on TS syntax error even when noEmitOnError is false -- use plugin option abortOnError May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: support Asking for support with something or a specific use case problem: stale Issue has not been responded to in some time solution: already possible This is already possible / this feature already exists solution: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants