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

[web-scripts] options "noEmit" and "incremental" are no longer allowed to be specified together #215

Closed
mtlewis opened this issue Feb 21, 2020 · 2 comments · Fixed by #236
Labels
bug Something isn't working

Comments

@mtlewis
Copy link
Contributor

mtlewis commented Feb 21, 2020

Looks like in Typescript 3.8, setting "noEmit" and "incremental" together cause build errors. I've worked around this in the repo I just upgraded, but we should probably update the tsconfigs in this repo to fit this new constraint. I suspect we probably want to turn off noEmit. I'll look at getting a PR up soon :). - just looked at the code, and I'm not sure it's as simple as I thought. I'll still try to get something up though! FWIW this actually bit me in the pre-commit task, so one of the changes might be to remove the --noEmit from LintTask.ts.

cf. microsoft/TypeScript#32882

@mtlewis
Copy link
Contributor Author

mtlewis commented Feb 21, 2020

OK - having looked at the tsconfigs in the repo in more detail, I don't think it makes sense for me to propose a change, since it sort of depends on the reason noEmit is there in the first place. Hopefully somebody with more historical context will be able to address this :)

@fastfrwrd fastfrwrd added the bug Something isn't working label Feb 26, 2020
@ekh64
Copy link
Contributor

ekh64 commented Mar 5, 2020

Echoing that I ran into this when upgrading web-scripts.

Talking with @fastfrwrd, he suggested modifying my tsconfig.json for the time being

{
  "extends": "@spotify/web-scripts/config/tsconfig.json",
  "include": ["src"],
  "compilerOptions": {
    "incremental": false
  }
}

fastfrwrd pushed a commit that referenced this issue Mar 12, 2020
incremental and noEmit cannot be used together anymore; should folks want to use incremental in the
future, they need to set it themselves via an override.

fix #215
fastfrwrd pushed a commit that referenced this issue Mar 12, 2020
* test(web-scripts): unbreak integration test

update to install jest-config, which is improperly included in ts-jest at the moment

fix #224

* fix: remove "incremental" from tsconfigs

incremental and noEmit cannot be used together anymore; should folks want to use incremental in the
future, they need to set it themselves via an override.

fix #215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants