LunatiqueCoder / react-native-media-console

A React Native video player. Built with TypeScript ❤️
MIT License
184 stars 28 forks source link

Cannot read property 'CONTAIN' of undefined. #99

Closed dSukanta closed 6 months ago

dSukanta commented 6 months ago

If I install the package and do whatever mentioned in the npm documents , then I got error undefined Unable to resolve module @react-native-media-console/reanimated and if I remove the line- import {useAnimations} from '@react-native-media-console/reanimated'; got error -TypeError: Cannot read property 'CONTAIN' of undefined. What could fix this issue , any idea?

LunatiqueCoder commented 6 months ago

@dSukanta

From the docs:

image

SOLUTION: Try to use react-native-video@6.0.0-beta.3

You can also find the GitHub Docs here: https://github.com/LunatiqueCoder/react-native-media-console/tree/master/packages/media-console

dSukanta commented 6 months ago

@LunatiqueCoder is there anything extra installation guide for react-native-video@6.0.0-beta.3? Because , after installation , when I reran the app , I'm getting build error - > Task :app:checkDebugDuplicateClasses FAILED

LunatiqueCoder commented 6 months ago

@dSukanta

I'm not sure but here are a few suggestions:

What version of React Native are you using? Also, are you using Expo?

LunatiqueCoder commented 6 months ago

@dSukanta Here's a link to react-native-video installation docs, might be helpful: https://react-native-video.github.io/react-native-video/installation

Keep in mind they're a work in progress!

LunatiqueCoder commented 6 months ago

@dSukanta Also, be sure you don't have @types/react-native-video installed.