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

Cannot read property 'StopSysSound' of null, js engine: hermes #28

Open
GeandersonTodimo opened this issue Nov 14, 2022 · 7 comments
Open

Comments

@GeandersonTodimo
Copy link

package.json
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-a-beep": "^1.2.0",

The following error is occurring.
TypeError: Cannot read property 'StopSysSound' of null, js engine: hermes

@jackywxd
Copy link

jackywxd commented Mar 7, 2023

I had the same error and I was able to fix it by moving RNReactNativeABeep.podspec up one level from current folder ios.

@guptavishesh143
Copy link

I had the same error and I was able to fix it by moving RNReactNativeABeep.podspec up one level from current folder ios.

@jackywxd can you please elaborate the steps what you did, Are talking about the IOS level ?

@jackywxd
Copy link

jackywxd commented May 5, 2023

RNReactNativeABeep.podspec should be moved to folder react-native-a-beep from its subfolder ios

image

@QuentG
Copy link

QuentG commented Jul 27, 2023

@jackywxd Do you need to apply a patch to do this or something else? I'd love the solution !
Thanks ;)

@Rodrigo816
Copy link

@jackywxd Do you need to apply a patch to do this or something else? I'd love the solution ! Thanks ;)

Yes you can use https://www.npmjs.com/package/patch-package to patch it.

@jackywxd
Copy link

jackywxd commented Aug 8, 2023

If @trietho could fix it in the main branch that's the most ideal solution. For temporary solution, @Rodrigo816 is correct, you could use patch-package to patch it in case you need to run yarn install again. @QuentG

@simon-assistiq
Copy link

I tried thie patch-package + moving podspec approach and it seemed to work fine, but on subsequent pod installs the Podfile.lock showed changes removing RNReactNativeABeep and the problem would recur... I thought I followed the steps for patch-package properly… maybe not?

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

6 participants