-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed as not planned
Labels
contributions: up for grabs!dependenciesPull requests that update a dependency filePull requests that update a dependency fileissue: bug report
Milestone
Description
Describe the bug
When attempting to use create-react-app with yarn 3, running the scripts returns the following error
Error: [BABEL] src/index.tsx: babel-preset-react-app tried to access @babel/plugin-proposal-private-property-in-object, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Did you try recovering your dependencies?
3.1.1
Which terms did you search for in User Guide?
N/A
Environment
current version of create-react-app: 4.0.3
running from /Users/mez/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app
System:
OS: macOS 12.1
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: 3.1.1 - ~/.nvm/versions/node/v14.18.1/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v14.18.1/bin/npm
Browsers:
Chrome: Not Found
Edge: Not Found
Firefox: Not Found
Safari: 15.2
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
mkdir foo
cd foo
yarn set version berry
yarn create react-app . --template all
yarn start
Expected behavior
App would start
Actual behavior
Multitude of errors, including the above regarding issue with dependency (others are resolvable by adding the dependencies manually)
Reproducible demo
thafer30, kimkanu, michael-veitch, jasperdunn, tchalvak and 12 more
Metadata
Metadata
Assignees
Labels
contributions: up for grabs!dependenciesPull requests that update a dependency filePull requests that update a dependency fileissue: bug report