Skip to content
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 react-native-drawer-layout #3

Open
mehul-srivastava opened this issue Oct 4, 2024 · 0 comments
Open

Failed to Apply Patch for react-native-drawer-layout #3

mehul-srivastava opened this issue Oct 4, 2024 · 0 comments

Comments

@mehul-srivastava
Copy link

Hey @ItsFlash10. Installing the dependencies on my local machine (MacOS 15.0) gives me an error:

patch-package 8.0.0
Applying patches...

**ERROR** Failed to apply patch for package react-native-drawer-layout at path

    node_modules/react-native-drawer-layout

  This error was caused because react-native-drawer-layout has changed since you
  made the patch file for it. This introduced conflicts with your patch,
  just like a merge conflict in Git when separate incompatible changes are
  made to the same piece of code.

  Maybe this means your patch file is no longer necessary, in which case
  hooray! Just delete it!

  Otherwise, you need to generate a new patch file.

  To generate a new one, just repeat the steps you made to generate the first
  one.

  i.e. manually make the appropriate file changes, then run

    patch-package react-native-drawer-layout

  Info:
    Patch file: patches/react-native-drawer-layout+4.0.0-alpha.9.patch
    Patch was made for version: 4.0.0-alpha.9
    Installed version: 3.3.2

As suggested by the error, installing react-native-drawer-layout at 4.0.0-alpha.9 seems to fix the issue. Do you think it is worth updating the package.json for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant