[🐛] Unable to resolve module `./internal/nativeInterface`
See original GitHub issueDescription
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:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, still not solve.
./internal/nativeInterface
doesn’t exist in v3. There is clearly a caching issue somewhere.