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.

Npm link cause "Unable to resolve module `AccessibilityInfo` "

See original GitHub issue

Is this a bug report?

Feels like it is a bug.

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.46.4
  2. node -v:v8.1.3
  3. npm -v:5.3.0
  • Target Platform: *

  • Development Operating System: macOS 10.12.5 & Windows 10 64bit

Steps to Reproduce

There is a RN Project A and Denpendency B. B is abstracted from A, it works properly before. Now B has a dependency on RN. Project A install Dependency B using npm link ../B && npm install ../B --save.

Structure as below: |–A
|–|–node_modules
|-------|–RN
|-------|–B
|----------|–node_modules
|---------------|–RN

Run with react-native start

Expected Behavior

Everything goes fine.

Actual Behavior

Error pops up as error: bundling failed: "Unable to resolve module "AccessibilityInfo" from "/path/to/A/node_modules/react-native/Libraries/react-native/react-native-implementation.js": Module does not exist in the module map.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
lucienblcommented, Jul 11, 2018

I don’t know if someone told that before me but downgrading from 0.56.0 to 0.55.4 solved this issue for me. 😃

3reactions
Chris-90commented, Jul 12, 2018

I don’t think that it is a dublicate of an multiple years old issue. Because the only solution of the old issue was to downgrade version. Downgrading is only a temporary fix, but no permanent solution. The problem seems to be the same, it doesn’t mean that reason is identacally, too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module 'AccessibilityInfo', when trying to ...
It seems like a bug in 0.56 related to dependencies. The "solution" is to find the correct combination of dependencies' versions.
Read more >
Solved: Unable to resolve module AccessibilityInfo
Unable to resolve module `AccessibilityInfo`: Module does not exist in the module map. So, what is the cause of this error and how...
Read more >
Unable to resolve module `AccessibilityInfo`
I am trying to create a new React-Native project from WebStorm IDE. After I run 'npm install' and click on 'Run' button in...
Read more >
at moduleresolver.resolvedependency - You.com - You.com
Error: Unable to resolve module `buffer` React Native ... Symlinks were probably causing your problem. npm install with a local path installs libraries...
Read more >
Setting up a Monorepo with React Native You.I and Yarn - G2i
We can fix this by using the symlink of React Native provided by yarn ... Unable to resolve module `AccessibilityInfo` from ...
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