Skip to content

How to avoid tsconfig error: 'noEmit' cannot be specified with option 'incremental'.  #124

Closed
@rphovley

Description

@rphovley

When using this template, out of the box, we get an error in our tsconfig that says: Option 'noEmit' cannot be specified with option 'incremental'.

This error shows up in the Typescript Github conversation here:
microsoft/TypeScript#33809 (comment)

The template comes with both options noEmit and incremental specified which is not supported. Essentially, from what I've read, if you supply noEmit as an option, incremental doesn't do anything for you (because it uses the emitted files that you are specifying to no longer emit).

I am curious if there's a reason maybe outside of the existing conversation on this thread I mentioned above as to why both options are specified?

For us it's more an annoyance at this point since it doesn't affect our builds but I'd still like to understand if maybe there's something we're missing? I think if both options are supposed to be included, it'd be nice to have somewhere this is referenced in the docs and how to quiet the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions