-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Migrate to babel 7: Requires Babel "^7.0.0-0", but was loaded with "6.26.3" #8206
Comments
Hey @budarin! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I think that you're loading a plugin that uses Babel 6 which is not compatible with Babel 7. |
@xtuc |
@budarin try installing babel-core@7.0.0-bridge.0 alongside @babel/core and then adding this to your package.json --
|
@ajliv |
As mentioned in the error itself, the stack trace is the important part here to diagnose the issue. Please include that. |
Here is full log:
|
Repo is changed (I have undo babel7 modifications to Babel 6), but you cold do checkout the head to reproduce the error
|
Yeah, so you have |
@loganfsmyth
|
@budarin you have
|
@budarin Since you're using a |
@jsg2021 |
@loganfsmyth |
Yep! |
@loganfsmyth
|
Above error was due to env's config for node - I've removed lines:
and webpack.config.babel.js is compiled Thanks a lot! |
please help me to resolve compatibilty issue. "dependencies": { |
Worked like a charm |
like @rohan0793 this fixed my issues without killing my builds elsewhere. |
for packages required babel 6 just install |
This is a current issue using babel7 with babel-jest, we need to have the babel-core bridge to fix that issue about a babel6 usage. See babel/babel#8206 (comment)
This is a current issue using babel7 with babel-jest, we need to have the babel-core bridge to fix that issue about a babel6 usage. See babel/babel#8206 (comment)
This is a current issue using babel7 with babel-jest, we need to have the babel-core bridge to fix that issue about a babel6 usage. See babel/babel#8206 (comment)
None of this appears to be working for me. The state of my dependencies:
|
I solved this by starting a new project and copying over the dependencies. Notably "babel-preset-expo": "^5.0.0", was not in my old project dependencies. |
For me, adding |
I have same issues like that and I already follow some methods on this conversions, but still get error like the first issues Budarin said |
Same issue here! |
Just add |
it solved by adding this .babelrc
and then on package json , and don't forget to add new babel |
Same issue here: my babel.rc
my package.json
|
You need to add:
to your dev dependencies. |
In my case, I read the stack trace to find |
npm WARN react-starter@1.0.0 No repository field. getting this error |
maybe you could install global babel-cli, you can try command : npm uninstall -g babel-cli babel-node.you need install @babel/cli and @babel/node. |
It worked for me. It asked to install peer dependencies which was in my case "@babel/core: ^7.0.0 ". I installed it also globally. |
Bug Report
Current Behavior
I've tried to move to Babel 7 on existing simple project.
When I've finished migration I've got the error:
Babel config for transformation the app is in
/config/babelLoaderConfig.js
Here is link for the repository
Environment
loader
The text was updated successfully, but these errors were encountered: