When installing dependencies for a create-react app(version 5.0.0) using pnpm dlx and pnpm import, i get a warning that peer dependencies should be installed. The dev environment for react spins up just fine. This warn message does not show up when using npx. How can i fix this warn message other than installing the peer dependencies?. Thanks in advance.
What i did:
- Create react app using pnpm dlx in the command-line
pnpm dlx create-react-app ./temp-app
- The above step created a package-lock.json file. So, to create pnpm's lock file,
pnpm import package-lock.json
- This created a pnpm-lock.yaml file with a warn message as below
WARN Issues with peer dependencies found
.
├─┬ @testing-library/user-event
│ └── ✕ missing peer @testing-library/dom@>=7.21.4
└─┬ react-scripts
├── ✕ missing peer typescript@"^3.2.1 || ^4"
├─┬ eslint-config-react-app
│ ├─┬ @typescript-eslint/eslint-plugin
│ │ ├── ✕ missing peer typescript@"*"
│ │ └─┬ @typescript-eslint/experimental-utils
│ │ └─┬ @typescript-eslint/typescript-estree
│ │ ├── ✕ missing peer typescript@"*"
│ │ └─┬ tsutils
│ │ └── ✕ missing peer typescript@">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
│ ├─┬ @typescript-eslint/parser
│ │ └── ✕ missing peer typescript@"*"
│ └─┬ eslint-plugin-flowtype
│ ├── ✕ missing peer @babel/plugin-syntax-flow@^7.14.5
│ └── ✕ missing peer @babel/plugin-transform-react-jsx@^7.14.9
├─┬ react-dev-utils
│ └─┬ fork-ts-checker-webpack-plugin
│ └── ✕ missing peer typescript@">= 2.7"
└─┬ tailwindcss
└── ✕ missing peer autoprefixer@^10.0.2
Peer dependencies that should be installed:
@babel/plugin-syntax-flow@^7.14.5 @testing-library/dom@>=7.21.4 typescript@">=3.2.1 <4.0.0 || >=4.0.0 <5.0.0"
@babel/plugin-transform-react-jsx@^7.14.9 autoprefixer@^10.0.2