๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Development/React.js

npm ERR! Cannot read properties of null (reading 'edgesOut')

by DevIseo 2023. 5. 14.

Styled-Components ์„ค์น˜์‹œ ์˜ค๋ฅ˜

๋ฌธ์ œ ์ƒํ™ฉ

styled-components ์„ค์น˜ ๋ฐฉ๋ฒ• - ๊ณต์‹Docs

npm install styled-components

react ํ”„๋กœ์ ํŠธ์— 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

 

'Development > React.js' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[React] font ์ ์šฉ  (0) 2023.01.28
[React] console.log(useRef)  (0) 2023.01.25
[React] ref, useRef  (0) 2023.01.24
[React] port ๋ฒˆํ˜ธ ๋ณ€๊ฒฝํ•˜๊ธฐ  (0) 2023.01.23
[React] React Hook API  (0) 2023.01.18

๋Œ“๊ธ€