C:\Users\Ahmet\Desktop\İrem\7\üü> npm i (any package-name)
npm ERR! Cannot read properties of null (reading 'edgesOut')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ahmet\AppData\Local\npm-cache\_logs\2022-01-21T17_53_37_530Z-debug-0.log
If you're getting this error while installing react styled-components, and there are no mistakes in your filename, directory as mentioned in other answers, then you have 3 solutions.
The latest version of styled-components is v6 but there is some issue while doing npm i styled-components
. So either
npm install [email protected]
, ORyarn install styled-components
, ORnpm install styled-components@latest
The following command worked for me:
npm install styled-components@latest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With