react-native-create-thumbnail icon indicating copy to clipboard operation
react-native-create-thumbnail copied to clipboard

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

Open ecargsid-eht opened this issue 2 years ago • 2 comments

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:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

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

ecargsid-eht avatar Sep 16 '22 14:09 ecargsid-eht

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

souvik-ghosh avatar Sep 21 '22 11:09 souvik-ghosh

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

yes .. i did rebuild the project

ecargsid-eht avatar Oct 01 '22 16:10 ecargsid-eht

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

kkusanagi avatar Nov 05 '22 10:11 kkusanagi

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

IgorGladkyi avatar Nov 09 '22 10:11 IgorGladkyi

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

giantslogik avatar Nov 10 '22 09:11 giantslogik

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

IgorGladkyi avatar Nov 10 '22 10:11 IgorGladkyi

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.

giantslogik avatar Nov 11 '22 11:11 giantslogik

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

hardik-wts avatar Nov 16 '22 14:11 hardik-wts

same issue ? ?

germankoco avatar Dec 30 '22 17:12 germankoco

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

kuldeep410 avatar Mar 06 '23 04:03 kuldeep410

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

blwinters avatar Aug 12 '23 17:08 blwinters

closing due to inactivity

souvik-ghosh avatar Dec 29 '23 23:12 souvik-ghosh