Describe the bug
Found: react@undefined
node_modules/react
react@"*" from the root project
Could not resolve dependency:
peer react@"17.0.2" from react-dom@17.0.2
node_modules/react-dom
react-dom@"*" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Error when running with create-react-app.
I have tried on an exisiting project to install package @material-ui and received similiar result as above (Found react@undefined)
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Environment Info:
current version of create-react-app: 4.0.3
running from C:\Users\sienn\AppData\Roaming\npm\node_modules\create-react-app
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
Binaries:
Node: 16.3.0 - ~\AppData\Roaming\npm\node.CMD
Yarn: Not Found
npm: 7.18.1 - ~\AppData\Roaming\npm\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.18362.449.0)
Internet Explorer: 11.0.18362.1
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
(Write your steps here:)
- npx create-react-app my-app
Expected behavior
Successfully created React App
Actual behavior

Describe the bug
Error when running with create-react-app.
I have tried on an exisiting project to install package @material-ui and received similiar result as above (Found react@undefined)
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Steps to reproduce
(Write your steps here:)
Expected behavior
Successfully created React App
Actual behavior