Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create react app with yarn 2 results in compile time error #10718

Open
wdfinch opened this issue Mar 20, 2021 · 10 comments
Open

Create react app with yarn 2 results in compile time error #10718

wdfinch opened this issue Mar 20, 2021 · 10 comments

Comments

@wdfinch
Copy link

wdfinch commented Mar 20, 2021

Describe the bug

Running create react app with yarn 2 as the package manager results in an app that cannot be started. The specific error that occurs is:

'Failed to load config "react-app" to extend from.'

The current yarn version being used is 2.4.1.

@kamthamc
Copy link

Had a same issue, it works if you add eslint-config-react-app dependency in your project

@wdfinch
Copy link
Author

wdfinch commented Mar 21, 2021

Hi @kamthamc thanks for the reply. Yes, I am aware of this workaround. However, I would still consider this an open issue since the user should not need to need to add an extra dependency in order to make this work. Create react app should build a startable app regardless of the package manager we use.

@jguizarj
Copy link

jguizarj commented Apr 2, 2021

I'm having the same issue with Yarn v.2.4.1

I created the app using the global install of Yarn 1.22.10, then I changed to Yarn 2.4.1 and the same error appeared :(

@huy-nguyen
Copy link

I'm using Yarn 3.1.0 and adding these lines to .yarnrc.yml

packageExtensions:
  react-scripts@*:
    peerDependencies:
      eslint-config-react-app: "*"

and yarn add -D eslint-config-react-app fix it for me.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
@alamothe
Copy link

F

@acherkashin
Copy link

I'm still facing the same issue

@joelparkerhenderson
Copy link

joelparkerhenderson commented Apr 17, 2022

Same issue with Yarn 3.2.0.

yarn dlx create-react-app my-app --template typescript
cd my-app
yarn start

@CheoR
Copy link

CheoR commented Jun 12, 2022

Any update on this?

@joelparkerhenderson
Copy link

joelparkerhenderson commented Jun 13, 2022

Update from my end: because of the lack of response by Facebook and the maintainers of React and create-react-app, on this issue and a few others, we decided to cancel React from our projects, cancel Yarn from our projects, and migrate to SvelteKit and PNPM. So far Svelte and PNPM have performed very well for us. Of course YMMV, use the right tools for your own needs, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants