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

Module not found: Can't resolve 'styled-components' #44

Open
VincenzoCarlino opened this issue Nov 23, 2018 · 20 comments
Open

Module not found: Can't resolve 'styled-components' #44

VincenzoCarlino opened this issue Nov 23, 2018 · 20 comments

Comments

@VincenzoCarlino
Copy link

After I have installed the package, the compiler gives to me this error, anyone knows how fix it??

@tipleavalentin
Copy link

I hame same issue..

@tipleavalentin
Copy link

I figured it out, you have to install the npm package: styled-components.
https://www.npmjs.com/package/styled-components

@murtdagi
Copy link

npm install styled-components --save
this should fix your problem

@lidrissi
Copy link

make sure that is version 3.x or 2.x of styled-components

@landrykapela
Copy link

worked pretty cool! thanks

@adeelraza
Copy link
Contributor

This issue has been resolved. The dependency for styled-components is now removed.

@doctor-glitch
Copy link

npm install styled-components --save
this should fix your problem

The issue is solved! thanks

@Cerebrovinny
Copy link

npm install styled-components --save
this should fix your problem

worked thx

@Danib0y97
Copy link

npm install styled-components --save
this should fix your problem

It´s solved, ty 👍

@Udit-singh
Copy link

npm install styled-components --save
this should fix your problem

Great, It's fixed @murtdagi

@Tomisin1
Copy link

Great! It works now. Thanks.

@lumiere25
Copy link

This is related to npm not being able to find a file....It did not work for me.

@mharif010
Copy link

thanks @murtdagi it's fixed.

@Byusa
Copy link

Byusa commented Jan 24, 2021

Do what @murtdagi suggested,
In case it does not work check the way your imported it, then do this:
import styled from 'styled-components/macro'
instead of
import styled from 'styled-components.macro'

@bronglil
Copy link

IMG-20210415-WA0016

I am getting this error please guide

@niamat-bakhshi
Copy link

niamat-bakhshi commented Apr 29, 2021

I just added it in the dependencies of package.json

"dependencies": `{`
    "@types/styled-components": "^5.1.9"
  }

@Gwihwan-Go
Copy link

npm install styled-components --save
this should fix your problem

It has solved. Thanks!

@prathu0603
Copy link

npm install styled-components --save
this should fix your problem

Thnx dude It helped, though it is Basic 😅

@deepraj143
Copy link

npm install styled-components --save
this work for me

@F4DE777
Copy link

F4DE777 commented Apr 15, 2022

i've installed it but it's changed to "Line 10:12: 'Item' is not defined"

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