Skip to content

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

Closed
@Fxlr8

Description

@Fxlr8

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

Activity

Fxlr8

Fxlr8 commented on Apr 5, 2019

@Fxlr8
Author

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

DanielRosenwasser commented on Apr 10, 2019

@DanielRosenwasser
Member

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @DanielRosenwasser@Fxlr8

        Issue actions

          [BUG] One line that hangs up the plugin · Issue #713 · microsoft/TypeScript-Sublime-Plugin