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 integration instructions are out of date #121

Open
SydBal opened this issue May 27, 2020 · 3 comments
Open

create-react-app integration instructions are out of date #121

SydBal opened this issue May 27, 2020 · 3 comments

Comments

@SydBal
Copy link

SydBal commented May 27, 2020

The new version of create-react-app no longer uses a .babelrc file in the root of the project, with the configuration instead existing in the package.json. This lead to confusion when spinning up a new project. The new version of CRA also has a more robust linting configuration, and will not compile without further modification.

I went ahead and created a working version of an ejected CRA, available here https://github.com/SydBal/cra-ejected-pug which demonstrates the modifications I needed to make in order to get the integration working. (spinning off of this stack overflow answer https://stackoverflow.com/questions/56513346/how-to-use-pug-templating-engine-with-reactjs/62051614#62051614)

The README should be updated to reflect the new setup.

@gotexis
Copy link

gotexis commented Apr 29, 2021

use craco

@skotchpine
Copy link

I just set this up with react-app-rewired and customize-cra and will have a PR shortly

@skotchpine
Copy link

I’ve been using react-app-rewired without issues for prod apps since the beginning of 2020. Can post configs if y’all need

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

4 participants