❗️ Styled-Components 설치 중 오류 발생 ❗️
오류 상황
styled-components 설치
npm install styled-components
styled-components 를 설치하기 위해 공식 문서에 나온 위와 같은 명령어를 입력했는데 다음과 같은 오류가 발생했다.
npm err! cannot read properties of null (reading 'edgesout')
오류 원인
latest version of styled-components is v6 but there is some issue while doing npm i styled-components
styled-components version6 이후로 다음 명령어시 문제가 발생
오류 해결
//Use V5,
npm install styled-components@5.3.10
//Use yarn
yarn install styled-components
//To use the beta version
npm install styled-components@latest
Reference
https://stackoverflow.com/questions/70810819/npm-err-cannot-read-properties-of-null-reading-edgesout
'React' 카테고리의 다른 글
[React]Toast UI source map 에러 (0) | 2023.06.22 |
---|---|
[React] useCallback 알아보기! (0) | 2023.05.20 |
[React] useMemo알아보기! (0) | 2023.05.20 |
[React] Diffing 알고리즘 (0) | 2023.05.19 |
[React] Virtual DOM (0) | 2023.05.19 |