-
-
Notifications
You must be signed in to change notification settings - Fork 27k
BABEL error when running yarn
in create-react-app
#4154
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
Comments
Just a side note, this is in the default
The thing that is really strange though is I had this working in the next branch last night... didn't turn off my computer or update anything... just deleted the test-app, tried to rerun |
Updating all babel packages to |
Interesting... I'll give that a try. Are you concerned about the breaking change released in |
I've confirmed that updating all the babel packages to I'm probably going to fix this in my app with Either way, I'd consider this issue solved unless anybody else wanted to chime in with additional details. |
I can confirm this issue is occurring in
Not sure how to update the babel packages though, it keeps adding them to my list of dependencies. I'm using yarn, workspaces, and lerna. Testing monorepo support in So this might be an issue connected to #3815 . |
confirmed as well. in the |
For some context, in beta.41 we added a way for plugins to check/assert what version of Babel they're being used with and throw a friendlier (irony, lol) error message. Haven't dug into this really, but it looks like I'll push a PR to fix. |
I actually did a bit of digging and it's to do with
|
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
yarn --version 1.5.1
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
node -v
: v8.9.4npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.5.1npm ls react-scripts
(if you haven’t ejected):└── [email protected] -> /Users/fratran/projects/create-react-app/packages/react-scripts extraneous
npm ERR! extraneous: [email protected] /Users/fratran/projects/create-react-app/node_modules/react-scripts
Then, specify:
Steps to Reproduce
(Write your steps here:)
git clone https://github.com/facebook/create-react-app.git
)cd create-react-app
)yarn
)Expected Behavior
node_modules folder gets generated, dependencies download without error, compiling iframeScripts.js finishes without error.
Actual Behavior
Failed to compile
message occurs when compiling iframeScript.js followed by the following errorReproducible Demo
You can reproduce this with this base repo, and I've experienced it on multiple coworker's computers.
The text was updated successfully, but these errors were encountered: