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 |
๋๊ธ