WARN Issues with peer dependencies found
.
└─┬ sb 6.5.16
└─┬ @storybook/cli 6.5.16
└─┬ @storybook/core-common 6.5.16
├── ✕ missing peer typescript@"*"
├── ✕ missing peer react@"^16.8.0 || ^17.0.0 || ^18.0.0"
├── ✕ missing peer react-dom@"^16.8.0 || ^17.0.0 || ^18.0.0"
└─┬ fork-ts-checker-webpack-plugin 6.5.2
└── ✕ missing peer typescript@">= 2.7"
Peer dependencies that should be installed:
react-dom@"^16.8.0 || ^17.0.0 || ^18.0.0" react@"^16.8.0 || ^17.0.0 || ^18.0.0" typescript@>=2.7.0
storybook init - the simplest way to add a Storybook to your project.
• Detecting project type. ✓
• Adding Storybook support to your "React" app
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
npm ERR! Cannot read properties of null (reading 'matches')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PBR\AppData\Local\npm-cache\_logs\2023-03-02T02_09_47_689Z-debug-0.log
An error occurred while installing dependencies.
ERROR Command failed with exit code 1: sb init --builder @storybook/builder-vite
pnpm: Command failed with exit code 1: sb init --builder @storybook/builder-vite
peer dependency 설정
pnpm config set auto-install-peers true
https://stackoverflow.com/questions/72468635/pnpm-peer-dependencies-auto-install
'Frontend > React' 카테고리의 다른 글
React Study - 2. 리액트 시작하기 (0) | 2023.04.09 |
---|---|
React Study - 1. Why React? (0) | 2023.04.07 |
pnpm cache clean (0) | 2023.03.02 |
Typescript - useRef() 사용시 type 설정 (0) | 2022.12.13 |
[React] + [Typescript + Emotion]에서 props 넘기는 방법 (0) | 2022.09.10 |