question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When importing "styled-components" VSCode IntelliSense will fall into infinite loading

See original GitHub issue

When importing “styled-components”, VSCode IntelliSense will fall into infinite load, the language server seems to have crashed, I tried either 4.2.0 and 4.1.3, but it didn’t get better.

import React, { Component } from "react";

import styled from "styled-components";

const Title = styled.h1`
    font-size: 1.5em;
    text-align: center;
    color: palevioletred;
`;

class App extends Component {
    render() {
        return <Title>Hello World!</Title>;
    }
}

export default App;

Snipaste_2019-04-05_19-40-49

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pathikdevanicommented, Apr 7, 2019

@ouweiya problem with vscode version 1.33.0, I just revert back with 1.32.3. As of now, it’s working fine.

0reactions
pathikdevanicommented, Nov 13, 2019

@cbdeveloper i am using latest now without any issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense not working · Issue #347 · styled-components ...
I expect the intellisense to tell me that an height css property ... a code importing another styled component like this, intellisense fails ......
Read more >
How To Fix Visual Studio Code IntelliSense Loading Infinitely
Fixing Visual Studio Code IntelliSense Loading Infinitely​​ If it doesn't work straightaway, you might need restarting your VS Code editor.
Read more >
VS Code issue with styled-components : r/vscode - Reddit
Is anyone having problems when importing 'styled-components' into any JS file? For some reason VS Code stops working for me—in the sense ...
Read more >
Intellisense not working with styled components extension ...
The auto-complete function is not working. Here is my code. LoginStyle.js import styled from "styled-components" export const Container = styled ...
Read more >
vscode-styled-components - Visual Studio Marketplace
Syntax highlighting and IntelliSense for styled-components. ... made to work with styled so make sure your default import is styled and nothing else....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found