-
Notifications
You must be signed in to change notification settings - Fork 935
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
Unable to resolve "@babel/runtime/helpers/builtin/interopRequireDefault" #216
Comments
Getting a similar issue since upgrading to
|
Quick fix: |
Upgrade please, fix released thanks! |
I have the same issue and installing the latest babel/runtime doesn't work for me |
Everyone probably already has @babel/runtime as dependencies. Unfortunately Babel has removed the builtin helpers since v7.0.0-beta.56 (3 days ago). Since npm doesn't automatically update most people won't have this problem. Try installing v7.0.0-beta.55, this fixes your problem:
|
@jquense Since you are referencing to babel runtime helper files directly it might be a good idea to update yup to use the correct babel/runtime/helpers using babel/runtime Babel has decided to move all builtin runtime helpers to a separate package: |
I'm having the same issue but on EDIT Can confirm that upgrading to |
Instead of pulling in the latest @babel/runtime beta version, perhaps this should be pinned to a specific version? https://github.com/jquense/yup/blob/v0.26.0/package.json#L86 |
Same here. I Solved pinning the version: |
Installing yup@^0.26.2 resolves this. |
@nfantone |
pin @babel/* to 7.0.0-beta.55 see for instance jquense/yup#216
@jquense looks like 0.26.2 was published with old runtime which relies on |
@kisenka 0.26.2 is up to date and working |
I'm still having this issue with
|
Try -> npm add babel-preset-react-native |
hello. have you fixed it yet ? |
ths you. |
Same problem and I resolved by install |
Had this issue after creating react native app with react-native cli, solved with this. Thank you. |
I solve same issue and I share you what happen. For some reason the .bash_profile isn't loaded at shell starts. So I put the stuffs in .profile file, but did not work either. Finally I put all in .bashrc file and configure my terminal (Terminator) to NOT run commands as a login shell. After that I was able to see the correct path with echo $ANDROID_HOME, running |
Sorry ! I forgot to say that I also had to run:
|
npm add @babel/runtime to me it's working.... thanks for help |
Y'all upgrade yup to the latest, delete you lock file and node_modules and reinstall. That should fix it. If you still have the issue something is broken in your build setup |
Nice man, work for me. |
Opa estava com o mesmo erro e resolvido com o comando |
Similar issue for me. I use ZSH and even though echo $ANDROID_HOME works in ZSH it wasn't working when running react-native run-ios Adding this to .bashrc fix it: export ANDROID_HOME=$HOME/Library/Android/sdk |
lol developer whole life #FUN #Family #Code 👍 |
|
Worked for me, many thanks! |
None of these have worked for me :( |
This worked for me. |
The error I was experiencing was related to
I added |
I am seeing this error when trying to run storybooks when using RN 0.56. I am starting up storybooks by using |
This worked for me. |
@babel/[email protected] did not work. I am having to downgrade @babel/runtime with the following command to get yup to work:
Using the latest of @babel/runtime and yup still gives the original error:
Deleting yarn.lock and node_modules/ did not help. |
I confirm too that @babel/[email protected] did not work. Downgrading to -beta.55 worked though. |
adding dev dependency @babel/runtime 7.1.5 did work for me. I suspect that if yup updated its package.json to 7.1.5 it may fix the issue for most people here. |
I have added @babel/runtime 7.1.5, but the error still exists. Yup ver. 0.26.6 |
@jquense could you elaborate by what you mean when say something is broken in your build setup ? I only get this error when I import yup into a file. I've tried what you suggested as well as a number of other things in this thread to no avail 😞 I'm on Yup v0.26.6 |
found same issue with this plugin jquense/react-formal#155 |
this has been fixed a long time ago, if you are still having issues there is something wrong with the copy you've installed or you have an old version |
Hi guys, today I update yup to 0.25.0 and im getting the following error:
Rolling back to v0.24.1 fix the issue, any advice?
The text was updated successfully, but these errors were encountered: