Skip to content

[BUG] One line that hangs up the plugin #713

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

Closed
Fxlr8 opened this issue Apr 5, 2019 · 2 comments
Closed

[BUG] One line that hangs up the plugin #713

Fxlr8 opened this issue Apr 5, 2019 · 2 comments
Labels

Comments

@Fxlr8
Copy link

Fxlr8 commented Apr 5, 2019

somehow this line of styled-components syntax explodes everything

const Wrapper = styled.div``

after saving a file with this line I immediately see a node process with 100+% CPU usage and code hints stop working

Sublime 3: build 3200
Typescript plugin: v3.4.1
MacOS Mojave

@Fxlr8
Copy link
Author

Fxlr8 commented Apr 5, 2019

I rolled back to 3.3.3333 release and I don't have this problem. Looks like something is wrong with the latest release.

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Apr 10, 2019

We're currently tracking this at microsoft/TypeScript#30819.

I rolled back to 3.3.3333 release

This is fine; alternatively, you can

  • update to a new version of @types/styled-components which avoids this regression so long as you have no interpolations.
  • update to TypeScript's 3.5 nightly versions, which contains a workaround.

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

No branches or pull requests

2 participants