-
Notifications
You must be signed in to change notification settings - Fork 12.8k
4.1 RC crashes when new JSX factory is used with incremental mode #41410
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
Comments
Well that's odd - most error-related incremental bugs also repro with
|
This happens when trying to report error as part of getting resolved symbol for the referenced file so we can add reference. I am surprised that even though getSymbolAtLocation asks to ignore error it is not ignored and tries to set it. @weswigham this happens when we try to get dependencies for the file from the import list which includes pseudo synthesized import literal |
Yeah, I think the fix here is probably getting it ( |
(The fix is simple, the |
@weswigham you can write unittest case in https://github.com/microsoft/TypeScript/blob/master/src/testRunner/unittests/tsc/incremental.ts#L3 use |
I ran into this too - can confirm the initial report. Removing incremental mode lets me run a typecheck without emitting, still breaks down for a build. Using |
--watch without incremental in tsconfig also crashes. |
TypeScript Version:
4.1.1-rc
(also reproduces in4.2.0-dev.20201104
)Search Terms: JSX factory incremental
Code
index.tsx:
tsconfig.json:
package.json:
Expected behavior:
Running
tsc
shouldn't crash.Actual behavior:
Playground Link:
Can't make a playground because
4.1.1-rc
isn't available there yet but here's a minimal repo.Related Issues:
Seems related to #41330 and prior PRs.
The text was updated successfully, but these errors were encountered: