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.

[🐛] Unable to resolve module `./internal/nativeInterface`

See original GitHub issue

Description

I update 2.3.4 to 3.1.1 react native image picker but ı get Unable to resolve module

Code

import { launchImageLibrary } from 'react-native-image-picker';
const fromLibrary = () => {
  launchImageLibrary(
    {
      mediaType: 'photo',
      includeBase64: true,
    },
    (response) => {
      setImage(response);
    },
  );
};
`error: Error: Unable to resolve module `./internal/nativeInterface` from `node_modules\react-native-image-picker\src\index.ts`:

None of these files exist:
  * node_modules\react-native-image-picker\src\internal\nativeInterface(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  * node_modules\react-native-image-picker\src\internal\nativeInterface\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    at ModuleResolver.resolveDependency (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
    at Object.resolve (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\lib\transformHelpers.js:267:42)
    at C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:434:31
    at Array.map (<anonymous>)
    at resolveDependencies (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:431:18)
    at C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (C:\Users\Gorkem\Desktop\workspace\CampainApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)`

Additional Information

  • Image Picker version:3.1.1
  • React Native version:0.63.3
  • Platform: Android
  • Development Operating System: Windows

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
patelharicommented, Dec 29, 2020

Yes, still not solve.

1reaction
Johan-dutoitcommented, Dec 17, 2020

./internal/nativeInterface doesn’t exist in v3. There is clearly a caching issue somewhere.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unable to resolve module process · Issue #63 ... - GitHub
I am using react native 0.66 and after I import the shim file and run the app I get this error error: Error:...
Read more >
Error: Unable to resolve module, could not be found within the ...
I have been trying to include a React native library (Local Library) to the React Native app. So I installed it using. npm...
Read more >
MongoDB Atlas App Services & Realm
Fresh Setup: Realm React Native Error: Unable to resolve module `./subscription` from `node_modules/realm/lib/browser/index.js`.
Read more >
React Native, Typescript and VS Code: Unable to resolve ...
The problem with resolving modules turned out to be related to VS Code's typescript project helper.
Read more >
r/reactnative - Reddit
error: Error : Unable to resolve module ./App from C:\Users\15124\thisoneforreal\index.js: None of these files exist: ...
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