patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

**ERROR** Failed to apply patch for package react-native-wagmi-charts at path

Open shahbaazdev opened this issue 2 years ago • 8 comments

This error was caused because patch-package cannot apply the following patch file:

patches/react-native-wagmi-charts+2.1.0.patch

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:

patch-package react-native-wagmi-charts

I have tried so many times but It doesn't work I Have tried with yarn

shahbaazdev avatar Jan 19 '23 07:01 shahbaazdev

Hi @shahbaaz207 , Did you find any solution for this? Still have the same issue.

MursiDirect avatar Jan 28 '23 18:01 MursiDirect

Still same issue

On Sat, 28 Jan, 2023, 23:47 MursiDirect, @.***> wrote:

Hi @shahbaaz207 https://github.com/shahbaaz207 , Did you find any solution for this? Still have the same issue.

— Reply to this email directly, view it on GitHub https://github.com/ds300/patch-package/issues/448#issuecomment-1407456284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6X7W5BDBXRXJPF74FS6PLWUVPE5ANCNFSM6AAAAAAUAAHUJU . You are receiving this because you were mentioned.Message ID: @.***>

--

www.iilmcet.ac.in http://iilmcet.ac.in/ | Watch to Experience IILM https://www.youtube.com/watch?v=OQ5Jgx3-qLk

https://www.facebook.com/iilmcet.grnoida 

https://twitter.com/IilmEngineering 

https://www.linkedin.com/company/iilmcet-grnoida/ 

https://www.instagram.com/iilm.engineering/

shahbaazdev avatar Jan 29 '23 04:01 shahbaazdev

Well, for me I have fixed the issue, simply the error message was saying that the package which you are trying to make a patch for, has a new version, and the patch has a conflict with the new update, so the solution is to take a backup of the patch file, then remove it from the app, then update the package manually to the latest version and check if the error is gone. if not, check if the maintainers of the package had already done the edit you made the patch for or not, if they added it so the patch file is useless, if not, put it again. then clear the app cache, and I hope it works for you as it did with me @shahbaaz207

MursiDirect avatar Jan 30 '23 06:01 MursiDirect

@shahbaaz207 did you managed to fix it? I have **ERROR** Failed to apply patch for package react-native-gifted-charts Basically same error. Previously i found out that this appears when you make the patch twice (patching 2x into same file). But now i made just one change and it fails

Unfortunatelly there is no detail in the error message:

**ERROR** Failed to apply patch for package react-native-gifted-charts at path
  
    node_modules/react-native-gifted-charts
  This error was caused because patch-package cannot apply the following patch file:
    patches/react-native-gifted-charts+1.2.42.patch
  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:
  
    patch-package react-native-gifted-charts
  
  If that doesn't work, then it's a bug in patch-package, so please submit a bug
  report. Thanks!
    https://github.com/ds300/patch-package/issues

radekzz avatar Mar 03 '23 08:03 radekzz

@radekzz did you manage to fix it? I have the exact same issue with the same package (react-native-gifted-charts)..

elinljunggren avatar Aug 23 '23 19:08 elinljunggren

@elinljunggren i found out that this happens to me when I patch multiple times. Solution was to apply patch only once

radekzz avatar Aug 24 '23 04:08 radekzz

@radekzz ah okay, thanks! Will have to look into what I can do about that then..

elinljunggren avatar Aug 24 '23 06:08 elinljunggren

@shahbaazdev ,

Error: Patch file found for package gifted-charts-core which is not present at node_modules/gifted-charts-core Error: Patch file found for package react-native-gifted-charts which is not present at node_modules/react-native-gifted-charts

chiragramimi avatar May 16 '24 08:05 chiragramimi