Skip to content

Paths are incorrectly resolved when react-scripts is a shared dependency #556

Closed
@gaearon

Description

@gaearon

Not sure if we want to (or even can) support this use case, but this doesn't currently work:

- proj
  - package.json # contains react-scripts
  - node_modules
    - react-scripts
  - a
    - package.json # does not contain react-scripts but has npm start
    - src
  - b
    - package.json # does not contain react-scripts but has npm start
    - src

Technically this is valid in npm, but CRA thinks it’s running in local development mode.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions