TheWidlarzGroup / react-native-video-player

A video player for React Native with controls
MIT License
514 stars 315 forks source link

TypeError: undefined is not an object (evaluating '_MaterialIcons.default.propTypes.style') #162

Closed NLanese closed 10 months ago

NLanese commented 2 years ago

Whenever I add import VideoPlayer from "react-native-video-player" to any file, I get the following error whenever I try to even start the app...

TypeError: undefined is not an object (evaluating '_MaterialIcons.default.propTypes.style')

 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

I tried using npm install material-icons and npm install material-icons --save which worked for a little (?) and then I started getting the same error again, and rerunning that command did nothing. In its current state, this package seems to be project-breaking

thechibuzor1 commented 2 years ago

I'm also facing this same issue

maoapp commented 1 year ago

the same here :(

marvelous-ikechi commented 1 year ago

Same here

roy-rayyone commented 10 months ago

Try to upgrade your react-native-video to 5.2.1

NLanese commented 10 months ago

Try to upgrade your react-native-video to 5.2.1

This appears to be the solution, I upgraded a while ago and fixed the issue. I suppose I just needed to wait for an update