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 path to module 'react-native-image-picker'

See original GitHub issue

Description

I upgraded to v3.0.1 and now I’m getting “Unable to resolve path to module ‘react-native-image-picker’.”

How to repeat issue and example

  • step to reproduce the issue Import the module
import { launchImageLibrary } from 'react-native-image-picker';

The package name is underlined with red.

Additional Information

  • Image Picker version: [3.0.1]
  • React Native version: [0.63.4]
  • Platform: [Android]
  • Development Operating System: [Windows]
  • Dev tools: [Android Studio version, iOS or Android SDK version, if applicable] navigation crash for Android

When I add “main”: “src/index.ts” in react-native-image-picker/package.json the error goes away

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
papuruthcommented, Dec 14, 2020

Check out 3.1.0

Great. It’s fine now. Thanks man.

1reaction
Johan-dutoitcommented, Dec 14, 2020

Check out 3.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve path to module 'react'. (import/no-unresolved)
In my case, this error appear because I pull new update from the remote repository and it's bring new dependencies. To solve this,...
Read more >
Issues - GitHub
Error : Unable to resolve module ./internal/nativeInterface from node_modules\react-native-image-picker\src\index.ts: None of these files exist: ...
Read more >
react-native-image-picker - npm
A React Native module that allows you to use native UI to select media from the device library or directly from the camera....
Read more >
An In-Depth Guide to Using React Native Image Picker
Install and configure react-native-image-picker. Start by running the below command from a terminal window to install the image picker module.
Read more >
unable to resolve module @react-native-firebase/messaging
I'm a bit lost here, I receive the following error while trying to build an android project (same happens when trying to build...
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