React native - storybook 프로젝트에 styled-components 설치 중 오류 발생.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: aws@1.0.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! react@"18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^18.2.0" from the root project
캐시 삭제도 해봤지만 되지 않았고
npm install --save styled-components
뒤에
--save --legacy-peer-deps
붙여서 설치 성공