Search code examples
reactjsnulldependenciesnpm-installstyled-components

How to read properties of null?


In Reactjs, while running npm install, styled-components display an error. While installing other dependencies is working fine, the problem is with styled-components.

npm ERR! cannot read the properties of null (read "edgesOut").
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersDELLAppDataLocalnpm-cache_logs2023-05-09T07_37_18_586Z-debug-0.log

Solution

  • I also have run into this issue.

    Using

    npm install styled-components@5.3.10
    

    worked for me.