-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Failed to apply patch for package react-native at path node_modules/react-native #523
Comments
I am facing fame issue in react-native-0.73.8 for replacing this line in "react-native/third-party-podspecs/boost.podspec" filespec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2', but in react native 0.68.2 i have same patch and it's woking. diff --git a/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp b/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp
|
The "Use of bitwise '|' with boolean operands" error is fixed in React Native 0.69+. But we are currently using react-native 0.63.5, we have to apply the following patch to fix the issue in node_modules when buiding circle-CI:
react-native+0.63.5.patch:
@@ -24,6 +24,28 @@ index c17c76d..9d5aaaf 100644
}
}
}
diff --git a/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp b/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp
index d916a45..1c7207a 100644
--- a/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp
+++ b/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp
@@ -2282,7 +2282,7 @@ static float YGDistributeFreeSpaceSecondPass(
depth,
generationCount);
node->setLayoutHadOverflow(
}
return deltaFreeSpace;
@@ -3043,7 +3043,7 @@ static void YGNodelayoutImpl(
}
node->setLayoutHadOverflow(
// STEP 6: MAIN-AXIS JUSTIFICATION & CROSS-AXIS SIZE DETERMINATION
diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env
new file mode 100644
index 0000000..361f5fb
=======================
But when this patch is being applied in circle-CI build, I kept getting the following error:
ERROR Failed to apply patch for package react-native at path
This error was caused because patch-package cannot apply the following patch file:
Try removing node_modules and trying again. If that doesn't work, maybe there was
an accidental change made to the patch file? Try recreating it by manually
editing the appropriate files and running:
If that doesn't work, then it's a bug in patch-package, so please submit a bug
report. Thanks!
The text was updated successfully, but these errors were encountered: