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

incremental mode is not yet support #787

Closed
yangdan8 opened this issue Dec 15, 2021 · 4 comments
Closed

incremental mode is not yet support #787

yangdan8 opened this issue Dec 15, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@yangdan8
Copy link

yangdan8 commented Dec 15, 2021

Error message:

node_modules\typescript\lib\tsc.js:99284
    function createIncrementalProgram(_a) { console.error('incremental mode is not yet support'); throw 'incremental mode is not yet support';

Demo link:
https://github.com/yangdan8/incremental-err-demo

Repro steps

yarn ins
yarn lint
yarn lint-tsc
@johnsoncodehk
Copy link
Member

You need to disable incremental and composite options to avoid incremental program for now.

@johnsoncodehk johnsoncodehk added the question Further information is requested label Dec 15, 2021
@yangdan8
Copy link
Author

yangdan8 commented Dec 15, 2021

You need to disable incremental and composite options to avoid incremental program for now.

The references attribute needs to be configured with composite to take effect

@IWANABETHATGUY
Copy link
Contributor

You need to disable incremental and composite options to avoid incremental program for now.

I am curious why not us support incremental mode, this may gain a lot performance improvement, since typescript should only spend a few time to reparse the file especially when file is big.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Dec 24, 2021

@yangdan8 I personally recommend that you use a single tsconfig in monorepo so that IDE performance is actually much better.

@IWANABETHATGUY not that easy, and vue-tsc watch has a higher priority. I will study it after supporting vue-tsc watch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants