Patch-package: command not found error when upgrading bitmovin-player-react-native to 0.16.0

We are currently using version 0.15.0 of the bitmovin-player-react-native in our project. We are noticing the following issue when upgrading our package to version 0.16.0:

error […]/bitmovin-react-native-postinstall-poc/node_modules/bitmovin-player-react-native: Command failed.
Exit code: 127
Command: patch-package
Directory: […]/bitmovin-react-native-postinstall-poc/node_modules/bitmovin-player-react-native
/bin/sh: patch-package: command not found

I believe this is due to the postinstall step defined in the package.json for this package on version 0.16.0.

I was curious if someone could confirm this? I have a small proof of concept of this exact issue:

As a resolve, I understand that installing patch-package globally will fix the issue. Don’t see patch-package listed as a dependency in the documentation. This might be helpful to add in to avoid confusion.

Hi @matt.irby!

Thank you for reporting this!

We are working on a solution right now.
Stay tuned for a release in the coming days!

@matt.irby v0.17.0 was just released and it contains a fix for your issue!

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.