-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Module @babel/runtime/helpers/interopRequireDefault does not exist in the Haste module map #21310
Comments
Should wait for this to be merged #21283 |
This comment has been minimized.
This comment has been minimized.
I've just run into this issue... ever since xcode 10 came out, the number of issues have been out of this world |
Had the same issue on W10 machine.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
for now since a lot of new changes are coming out, this fix worked for me: if on ios you get _this._registerEvents is not a function, after a successful build edit: |
wow @g4laura you da man (woman) ! 👍 |
You all just fixed the issues I've been having for two days (new to react native). Hopefully these bugs will be fixed, but in the mean time
worked for me. Thanks @Aximem |
私の環境です
私もこのエラーが出ていましたが、
これで動きました! |
just add @babel/runtime to devDependencies is ok.
|
Fixed in 1323acd but not landed in any version yet, will try to urge them to land in 0.57.2 |
Thanks @g4laura ! I have been trying to fix this issue for 2 days & your suggestion (especially the inclusion of @babel/runtime) simply works!! |
Thanks @Aximem . Your suggestion worked !!! |
Thanks for the short fix guys. I'm new to react-native too and it's been 3 days that from a scratch, clean windows install I'm trying to launch a very simple program. Finaly it's working. Thank you again |
I tried the fix but it did not work... 😔 Edit: |
@Aximem solution should hopefully work for most people. Before you do it though, its probably going to go much smoother for you if you close out completely from the simulator and the Metro bundler cli |
It works for me thanks |
The solution given by the thread starter @Aximem works for me |
Doesn't work for me. I stumbled across a new error after adding
Line 410 from the bundle file : var _typeof = require("@babel/runtime/helpers/typeof");
Object.assign = function (target, sources) { Isn't |
@g4laura Thanks mate! It simply worked ❤️ |
@g4laura is our new queen <3 |
It works for me thanks ❤️❤️❤️ |
@g4laura I was bashing my head against the wall contemplating switching industries and then I found your solution and now I'm happy again (for now)! Thank you!!! |
Thank you.. |
Maybe related: |
@MANTENN same thing is happening to me but with |
@MANTENN Have you been able to solve it? I'm on with RN 0.61.2. My setup is a monorepo with Yarn Workspaces.
When I try to run the app I got:
When I check my My
EDIT:
So babel was not picking up This is the final
And here is the
You need the |
Here's my solution for workspaces and importing shared code (on a non-Expo app) // package.json
"devDependencies": {
...
"expo-yarn-workspaces": "1.2.1"
},
"workspaces": {
"nohoist": [
"react-native",
"react-native-*",
"react-native/**",
"expo-yarn-workspaces"
]
} // metro.config.js
const { createMetroConfiguration } = require("expo-yarn-workspaces")
const config = createMetroConfiguration(__dirname)
// Make react-native import from files in other workspace resolve to node_modules in this dir
config.resolver.extraNodeModules["react-native"] = `${__dirname}/node_modules/react-native`
// Default metro config
config.transformer.getTransformOptions = async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
})
module.exports = config |
you can try to rebuild this project or create project initial by expo utils |
Most solutions involve npm install --save @babel/runtime |
I have solved the problem by removing from watchman's configuration files (in my case it was
|
Just in my case:
|
Today, I met that issue again, and run it solve the issue:
I use |
Fun morning. I had to reset a bunch of dependencies and caches to get things to work. I ended up having to do a combination of things mentioned in this issue and this post.
Ensure that @babel/core and @babel/runtime had matching, exact versions in dev dependencies in
Nuke & pave:
|
Thank You so mutch! You save me! haha |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
I'm still getting this issue with react-native 0.63.2 and none of these solved it. |
@hugoh59 Same for me, I'm really shocked. I tried everything. RN is a piece of shit |
I'm still getting this issue with react-native 0.63.2 and none of these solved it. Please helper! |
I had the same issue. This is what i did to resolve.
Then ran my npx react-native bundle ....
|
I am getting this issue with
I am not sure how to troubleshoot it. I've tried the solutions presented here. |
Getting this issue with importing directly a TypeScript module package. Wiping and re-installing with |
Someone may find this helpful. I had the same problem while using turborepo and Expo. |
I am facing a similar issue, but it is on reactjs. So I have a component library which I have published on github packages using Rollup as my bundler. The component library is also developed in reactjs. So when I install this library on a consumer application(reactjs web app), I'm getting the error as shown in the attached screenshot. Until a month and a half ago everything was working fine. After which I published a new version and ever since that I'm facing the same issue. The version previous to this new version that I published a month and a half ago is working fine but anything published after this version throws up the same error. I even reverted the code back to how it is on the version that is working, but no luck. Requesting help on this issue. Need to resolve this as early as possible. |
Environment
Description
When starting a new project with react-native init then run iOS, I'm getting the error :
Reproducible Demo
react-native init myapp
// FIX CFBundleIdentifier issue with react-native upgrade
react-native run-ios
Get the error.
FIX
The issue can be fix by doing:
npm add @babel/runtime
npm install
But we shouldn't have to do all this stuff !
The text was updated successfully, but these errors were encountered: