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

in RN 0.52.0 iOS undefined is not an object (evaluating 'RNSound.IsAndroid' ) #446

Closed
shijinwu opened this issue Jun 19, 2018 · 8 comments
Closed

Comments

@shijinwu
Copy link

undefined is not an object (evaluating 'RNSound.IsAndroid' )

@dskoneczny
Copy link

@shijinwu
#352 (comment)

@tetreault
Copy link

no functional verified solution in that thread @dskoneczny and this shouldn't happen on iOS out-the-box after the linker runs successfully. Currently this error occurs even from merely importing react-native-sound

@isaaclem
Copy link

isaaclem commented Dec 3, 2018

Just clean the cache and restart your app will do.

@hellohaidev
Copy link

same problem

@isaaclem
Copy link

isaaclem commented Dec 3, 2018

@tetreault : Have you actually tried and my suggestion failed? Because I was facing the same issue and I could fix it by running the below command.

watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache

@tetreault
Copy link

I have indeed and it didn't work on my end. Same error thrown just by merely importing it. also tried random other things like cleaning the xcode project etc with no luck.

@nabehide
Copy link

This works for me.

rm -rf ios && react-native eject
react-native link
react-native run-ios

@paulmelnikow
Copy link
Collaborator

Hi! If you're still having this problem, could you please post a link to a project that reproduces the problem, give information about your environment, and say what steps you have already tried?

This is the most common issue faced by react-native-sound users and it would be good to add documentation listing the possible resolutions. A pull request would be welcome; I've opened #592 to track that.

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

No branches or pull requests

7 participants