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
Unhandled JS Exception: Unexpected identifier 'invariant'. import call expects exactly one argument. no stack #32888
Comments
getting the same issue , still waiting for some positive response |
getting same issue since last week, no solution found yet. |
I also got problem after upgrade my react-native to 0.67. |
I am also getting same issue with react-native version 0.67.0. Can anyone please help me to solve this |
Same issue on react-native version 0.66.4 and 0.67.0 |
We have the same issue with react-native 0.64.2 and xcode 13.2.1 and 13.2. Downgrading xcode to 13 helped us to run the app successfully again. |
i already have xcode 13 but still getting this issue |
@misterbo271 May I know is there any solution for this problem? |
Thank God after days of work this silly issue resolved on my side In my case it was babel, actually i removed the yarn.lock file and after a fresh yarn the babel version was updated so its creating this issue, so what i did i just revert the yarn.lock file and remove ( ^ ) from "@babel/core" version and did a yarn and then it works.... hope it will help i changed this |
Editing yarn.lock/package-lock.json is just a temporary solution as yarn lock could be automatically be edited in the future. Fixing babel/core to specific version points me to the right direction.
my node is 10.15.3 final version is
|
I changed the babel version thinking that was the problem but it wasn’t. I restarted my computer and cleaned builds from Xcode and also cleaned cache for react native and yarn/npm and then the app runs ok. Please try this and let me know if this worked for you guys |
Tried everything mentioned above still its not working for me. |
Hey guys! 😎 When we copy or clone a project. The package.json file always comes with a caret "^" in front of the versions of some packages. That is, when we run the installation (npm/yarn) the packages will be updated. 😱 It worked for me! 👌 Recommend using this site 😏 React Native Upgrade Helper by selecting your React Native version and adjusting the version number in package.json file. Then remove the node_modules folder and the file ( 🏆 Gold tip: To avoid errors like this in the future, remove the "^" cases from versions. |
I have the same issue. I tried the suggested solution but nothing works. My versions are "@babel/core": "7.6.2", |
for anyone still having this issue, this is what fixed mine |
This worked for me too. Specifically, updating my |
Same |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
So Xcode got updated to the 13.2.1 version and since that update I am no being able to run the app. It builds successfully but doesn't run, this error shows up:
I tried recloning the app but it doesn't work, also I build and run another react native app and it works normally and also download the simulators for iOS 15 because the update brings the 15.2 which is the latest iOS version.
Please help.
Version
0.64.2
Output of
npx react-native info
Steps to reproduce
yarn install
cd ios
pod install
cd ..
react-native run-ios
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: