Skip to content

[0.23.0-rc1] Cannot resolve react-native #6640

@IanVS

Description

@IanVS

On mac, npm v.3.8.2, node 5.3.0:

On a fresh install:

npm i --save react react-native@next

The install seems to complete successfully.

npm ls --depth=0
rn@1.0.0 /Users/ianvs/code/experiments/rn
├── react@0.14.7
└── react-native@0.23.0-rc1

But:

npm ls react
rn@1.0.0 /Users/ianvs/code/experiments/rn
└── react@0.14.7

npm ls react-native
rn@1.0.0 /Users/ianvs/code/experiments/rn
└── (empty)

npm ERR! code 1

This is causing problems in some third party libraries I use which import RN with var React = require('react-native);`.

image

I had no trouble with 0.22.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions