question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.babelrc and eject script

See original GitHub issue

Hey - I’m very new (or at least I’m far from understanding everything) but working on a fork of this project using inferno, I’m running into an issue with the eject script, namely that the .babelrc file can’t be found.

Looking at the code of react-scripts and specifically this line, it looks like the eject script looks for a file called .babelrc (notice the dot).

During this commit .babelrc was renamed to babelrc.

I’m not running into bugs with create-react-app, but I was wondering if everything was normal?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Mar 14, 2017

Ah, you need to have USE_YARN set to yes. This makes sense as these tests are meant for build servers, not so much local testing.

1reaction
Timercommented, Mar 14, 2017
  1. Yes, please add this to all scripts.
  2. No. This was my mistake, I meant scripts/*.js.
  3. You should be able to make your edits before #1810 is merged. Git is really good at combining things. 👍

Thanks for being on top of this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simplest Way to Install Babel Plugins in Create React App
The traditional way of installing Babel plugins in a Create React App project requires you to eject the app via running npm run...
Read more >
Solving Babel issue in Ejected React Application
A few days ago I was working on a React web application. Once I finished my development, I had ejected the app to...
Read more >
How to customize babel config? · Issue #167
I don't want to eject, but add certain things like https://babeljs.io/docs/plugins/transform-es2015-for-of/ in .babelrc.
Read more >
How to find .babelrc? - reactjs
After ejecting from project, go to package.json and you will find babel presets. There are two ways to edit your Babel configuration in...
Read more >
Setting up a custom .babelrc file without ejecting a React App ...
In this video we create a custom . babelrc file and configure a create react application to incoperate it into its build process....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found