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

Tsc compiler hangs (3.4.0-dev.20190226 and above) #30745

Closed
martis347 opened this issue Apr 4, 2019 · 2 comments
Closed

Tsc compiler hangs (3.4.0-dev.20190226 and above) #30745

martis347 opened this issue Apr 4, 2019 · 2 comments

Comments

@martis347
Copy link

Hello,

I've encountered to some issues after updating typescript to the latest stable version. With versions 3.3.4000, 3.4.0-dev.20190223 it's working, with every later version it just hangs.
It is using styled components, but the issue seems not to be there.

TypeScript Version: 3.4.0-dev.20190226 and above (up until 3.5.0-dev.20190404)

Search Terms: typescript 3.4.0 hangs, typescript 3.4.0 no response, typescript 3.4.0 compiler unresponsive

Code

import baseStyled, { ThemedStyledInterface } from 'styled-components';

interface Theme {
	color: string;
}

const styled = baseStyled as ThemedStyledInterface<Theme>;
console.log(styled);

Expected behavior:
It compiles in <5 seconds

Actual behavior:
Tsc does not compile, just hangs and uses a lot of CPU power.

Playground Link: I've created a github repo with a minimal reproduction https://github.com/martis347/typescript-error

@AlCalzone
Copy link
Contributor

Duplicate of #30663 ?

@martis347
Copy link
Author

@AlCalzone Yep, looks like it. Sorry for not finding it and creating a duplicate. I'll close this one.

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

No branches or pull requests

2 participants