Unable install styled-components keep have below error:
Please help.
PS C:\react-app> npm i styled-components
npm ERR! Cannot read properties of null (reading ‘edgesOut’)
2 Likes
I also encountered the same problem. Can you tell me if you have solved it?
has anyone been able to fix this issue because i also encountered the same problem
and now i’m stuck i don’t know how to install styled components for react typescript
inside vs code
use this instead
npm install styled-components@^5.0.0 react@^16.8 react-dom@^16.8 react-is@^16.8
solved by using command below:
npm i [email protected] @types/styled-components