question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Native module not found

See original GitHub issue

I have an issue with Video Compressor.

const result = await Video.compress('./853.mp4');
console.log('dfff', result);

Result - Error: Native module not found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
panvourtsiscommented, Nov 22, 2021

I have the same issue till yesterday. I removed my Podfile.lock and run pod install and suddenly I see that. I checked pod is installed.

I tried manual installing it but it breaks in another error that I cannot resolve.

** UPDATE **

after putting a small console log on the uuidv4 it seems that this is where it comes from.

It only logs ‘before uuidv4’

compress: async (
    fileUrl: string,
    options?: {
      bitrate?: number;
      compressionMethod?: compressionMethod;
      maxSize?: number;
    },
    onProgress?: (progress: number) => void
  ) => {
    console.log('before uuidv4')
    const uuid = uuidv4();
    console.log('after uuidv4')

*** UPDATE 2 *** after adding to my package.json the yarn add react-native-get-random-values and I run pod install again everything worked.

0reactions
numandev1commented, Nov 30, 2021

@swanand6300 can you install

yarn add react-native-get-random-values

and then run pod install and then check?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native module not found" error when using uuidv4 in React ...
Describe the bug When I try to use uuidv4 in my vanilla react native (non-Expo) app, I'm getting "Error: Native module not found"...
Read more >
ios - React Native module not found
I get the following error in my ios simulator
Read more >
Troubleshooting
If the app builds but an error appears indicating the “BugsnagReactNative” module was not found, or if the app fails to build indicating...
Read more >
Troubleshooting
If the module points to an npm package (i.e. the name of the module doesn't with ./ ), then it's probably due to...
Read more >
Troubleshooting
Missing libraries for React​ ... If you added React Native manually to your project, make sure you have included all the relevant dependencies ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found