Skip to content

Missing dependency on @react-native-community/cli-tools #1190

@jcreamer898

Description

@jcreamer898

Description

There is code which uses "@react-native-community/cli-tools", however there's no dependency on @react-native-community/cli-tools in the package.json...

https://github.com/microsoft/react-native-macos/blob/main/local-cli/runMacOS/runMacOS.js#L18

There's a phantom dependency here because cli-tools is a dependency in other packages... https://github.com/microsoft/react-native-macos/blob/main/yarn.lock#L1232.

This can cause side effect problems which would be fixed by simply including the right version in the react-native/package.json.

Version

Output of react-native info

image

Steps to reproduce

It requires usage of this package in a strict package manager such as PNMP or midgard-yarn-strict.

Snack, code example, screenshot, or link to a repository

I found the issue by modifying the code of the config/index.js and outputting missing require statements.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions