Skip to content

Npm link cause "Unable to resolve module AccessibilityInfo " #15172

Closed
@SiBorya

Description

@SiBorya

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.

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