You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jest-cli' imported from .../node_modules/@react-native-harness/cli/dist/index.js
Root Cause:
@react-native-harness/cli lists jest-clias a peerDependency ("jest-cli": "*") and a devDependency ("jest-cli": "^30.2.0"), but not as a regular dependency.
However, src/index.ts directly imports at runtime:
import { run, yargsOptions } from 'jest-cli';
Since jest-cli is neither a runtime dependency nor auto-installed by yarn dlx/npx, the import fails.
Expected behavior: yarn dlx react-native-harness@latest init should work without requiring the user to manually install jest-cli first.
Activity