Skip to content

Failure internal error package node_modules/react/package.json not found #403

Closed
@seanhess

Description

@seanhess

I'm getting a weird error saying it can't find react's package.json:

/Users/seanhess/projects/serials/web/app/admin/source.js:
Failure("internal error: package /Users/seanhess/projects/serials/node_modules/react/package.json not found")

I'm on flow 0.9.2 (but I've had problems since 0.8.0). My project is here: https://github.com/seanhess/serials.

It's strange because if I just run flow I don't get any errors, but if I run flow file.js I get the error.

serials> flow
No errors!

serials> flow web/index.js

/Users/seanhess/projects/serials/web/app/admin/admin.js:
Failure("internal error: package /Users/seanhess/projects/serials/node_modules/react/package.json not found")

... repeated 7 times: each time I import react

It seems similar to this issue in react-native: facebook/react-native#938

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions