Skip to content

Unable to resolve module *any* #14996

Closed
Closed
@thedevdavid

Description

@thedevdavid

If I install any package and import it, the packager stops with this Exception all the time.
There are some tips for what should I do, but it isn't working. Every time, I get this error, I trying all of the commands (below on screenshot) and react-native-git-upgrade, npm cache clean --force, npm cache verify, yarn cache clean in various order but it's a magic how it works... It's get resolved by one of these commands or all of them, or the order matters or who knows. The error magically disappears about 1-2 HOURS of trying.

It's really annoying that neither me or my team can not work when this error appears and as I search for it, I saw that this issue isn't resolved and it was an issue in 2015 too.

Many developers have tried a lot of possible solutions, but nobody can not solve it and it isn't depend on npm, node, react, react native, or any tool/package version.

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.43.2
  2. node -v: v8.1.3
  3. npm -v: 5.2.0
  4. yarn --version (if you use Yarn): 0.27.5
  • Target Platform: iOS & Android

  • Development Operating System: macOS Sierra 10.12.5

  • Build tools: Doesn't matter. With cli, xcode, and android studio.

Steps to Reproduce

  1. react-native init AppName
  2. npm install any-dependency
  3. react-native run-ios || run-android

Expected Behavior

Just compile, build and run my app.

Actual Behavior

simulator screen shot 2017 jul 13 11 00 44

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions