react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

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

Open shijinwu opened this issue 8 years ago • 8 comments

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

shijinwu avatar Jun 19 '18 05:06 shijinwu

@shijinwu https://github.com/zmxv/react-native-sound/issues/352#issuecomment-360475664

dskoneczny avatar Jun 19 '18 09:06 dskoneczny

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

tetreault avatar Nov 10 '18 20:11 tetreault

Just clean the cache and restart your app will do.

isaaclem avatar Dec 03 '18 07:12 isaaclem

same problem

hellohaidev avatar Dec 03 '18 11:12 hellohaidev

@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

isaaclem avatar Dec 03 '18 14:12 isaaclem

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.

tetreault avatar Dec 03 '18 14:12 tetreault

This works for me.

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

nabehide avatar Dec 21 '18 06:12 nabehide

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.

paulmelnikow avatar Jul 12 '19 19:07 paulmelnikow