souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
252 stars 105 forks source link

null is not an object (evaluating 'CreateThumbnail.create') #72

Closed ecargsid-eht closed 11 months ago

ecargsid-eht commented 2 years ago

I tried installing this package for the purpose of creating thumbnails out of video but as soon as i import it, expo throws error (mentioned in the title).

One other error that comes along is:- 2022-09-16

Invariant Violation: "main" has not been registered. This can happen if:

I'm using the latest version of this package and I'm hoping some answer very soon. Can someone please help here?

souvik-ghosh commented 2 years ago

@ecargsid-eht, Have you rebuilt your project after installing the library?

ecargsid-eht commented 2 years ago

@ecargsid-eht, Have you rebuilt your project after installing the library?

yes .. i did rebuild the project

kkusanagi commented 2 years ago

Same here. By the way, i'm using typescript. Currently using version 1.6.3

IgorGladkyi commented 2 years ago

the same issue on android, ios works fine react-native": "0.68.2",

ext.kotlin_version = '1.6.0' ext { buildToolsVersion = "31.0.0" minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 supportLibVersion = "28.0.0" googlePlayServicesVersion = "11.8.0" androidMapsUtilsVersion = "0.5+"

2022-11-09 12 57 40

giantslogik commented 2 years ago

same issue with: 2.0.0-rc.2 , RN 69.5

IgorGladkyi commented 2 years ago

same issue with: 2.0.0-rc.2 , RN 69.5

try it, works for me https://github.com/souvik-ghosh/react-native-create-thumbnail/issues/78#issuecomment-1305899521

giantslogik commented 2 years ago

same issue with: 2.0.0-rc.2 , RN 69.5

try it, works for me #78 (comment)

Just updating the minor RN version as mentioned in react-native/issues/35210 fixed it for me.

hardik-wts commented 2 years ago

Facing same issue even try by downgrading the react native create thumbnail version

germankoco commented 1 year ago

same issue ? ?

kuldeep410 commented 1 year ago

Hi @germankoco! please downgrade your react, react-dom, react-native version according to your project packages.

the same issue on android, ios works fine:- Install React: "react": "17.0.2", Install React Dom: "react-dom": "17.0.2", Install React-Native : "react-native": "0.68.2",

After That:- 1) Delete Node Modules, 2) Delete yarn.lock file, 3) Delete package-lock.json

npm install || yarn install

Run The project:- npx expo start || npx react-native run-android

blwinters commented 1 year ago

Make sure you run pod install after adding the package to your project. That was my issue.

souvik-ghosh commented 11 months ago

closing due to inactivity