react-email-editor icon indicating copy to clipboard operation
react-email-editor copied to clipboard

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

Open VincenzoCarlino opened this issue 7 years ago • 20 comments

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

VincenzoCarlino avatar Nov 23 '18 10:11 VincenzoCarlino

I hame same issue..

tipleavalentin avatar Nov 24 '18 17:11 tipleavalentin

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

tipleavalentin avatar Nov 24 '18 20:11 tipleavalentin

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

murtdagi avatar Dec 13 '18 22:12 murtdagi

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

lidrissi avatar Jan 31 '19 22:01 lidrissi

worked pretty cool! thanks

landrykapela avatar Feb 23 '19 09:02 landrykapela

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

adeelraza avatar May 16 '19 00:05 adeelraza

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

The issue is solved! thanks

doctor-glitch avatar Sep 28 '19 09:09 doctor-glitch

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

worked thx

Cerebrovinny avatar Jan 22 '20 23:01 Cerebrovinny

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

It´s solved, ty 👍

Danib0y97 avatar Jul 28 '20 21:07 Danib0y97

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

Great, It's fixed @murtdagi

Udit-singh avatar Aug 02 '20 12:08 Udit-singh

Great! It works now. Thanks.

Tomisin1 avatar Oct 29 '20 16:10 Tomisin1

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

lumiere25 avatar Oct 31 '20 01:10 lumiere25

thanks @murtdagi it's fixed.

mharif010 avatar Dec 16 '20 06:12 mharif010

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'

Byusa avatar Jan 24 '21 23:01 Byusa

IMG-20210415-WA0016

I am getting this error please guide

bronglil avatar Apr 15 '21 20:04 bronglil

I just added it in the dependencies of package.json

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

niamat-bakhshi avatar Apr 29 '21 19:04 niamat-bakhshi

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

It has solved. Thanks!

Gwihwan-Go avatar Jun 16 '21 08:06 Gwihwan-Go

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

Thnx dude It helped, though it is Basic 😅

prathu0603 avatar Aug 09 '21 06:08 prathu0603

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

deepraj143 avatar Sep 16 '21 14:09 deepraj143

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

ShadowScripts1 avatar Apr 15 '22 14:04 ShadowScripts1