-
-
Notifications
You must be signed in to change notification settings - Fork 301
'No such file or directory' error when applying patch to react-native #139
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
Comments
Hi 👋 Thanks for the report! I'm going to try to look into this on Friday. |
Hello again! I haven't been able to reproduce this despite using the same versions of node and react-native. Any chance you could provide a repo on which you encounter the problem? |
Unfortunately, this is on a private repo. However, it was an Expo project ejected to Expo kit. I was able to work around the issue by creating my own patch file and then using this package to create a patch file for a different module to figure out the file format and then convert my manual patch into the correct file format. |
hahah, woah, kudos! I'll try following the same steps with expo and report back. |
Hello there, any luck on this issue ? I am having the same issue patching react-native 0.56 with the following patch in
replaced by:
|
+1 I am also seeing this trying to patch react-native with patch-package version 6.1.2 |
For those still having issues, upgrading to patch-package version 6.2.1 fixed it for me |
Gonna close this, the problem seems to be gone. |
I get the same error:
Any ideas what might be causing it? |
The solution on issue 288 worked for me: I assume that the reason for this error was how I added the library in package.json. instead of like so What I did to fix this is go to Go to npm_modules/patch-package/dist/makePatch.js
You'll have to replace "react-native-pjsip":"git+https://github.com/datso/react-native-pjsip.git" with whatever you're using in your package.json file! |
I'm encountering the same error from #82 in 6.1.2 running
patch-package react-native
.The text was updated successfully, but these errors were encountered: