react / react/metro

None of these files exist

Open
#1,146 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug Needs: Triage :mag:
Dominant language
JavaScript
Stars
5.6k
Forks
696
Avg merge
8m
Merged PRs (30d)
7

Description

Description

I've seen this issue on previous versions of react native. For clarification I am using version 0.72.0

Put simply, everytime I load 'npx react-native run-android' I get the "none of these files exist" issue
image
This is temporarily fixable by going into every single .js front end file and literally just resaving each file by pressing ctrl S. However this obviously isn't a long term solution.

I have installed watchman through chocolatey however when I do 'npx react native info' it says watchman is not installed
Here's proof that it is.

image

Has anyone else had this problem or know how to solve it?

React Native Version

0.72.0

Output of npx react-native info

System:
OS: Windows 11 10.0.22621
CPU: "(16) x64 AMD Ryzen 7 5800H with Radeon Graphics "
Memory: 866.36 MB / 13.86 GB
Binaries:
Node:
version: 18.16.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 9.7.2
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-221.6008.13.2211.9514443
Visual Studio:
- 17.4.33213.308 (Visual Studio Community 2022)
Languages:
Java: 11.0.20
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: ^18.2.0
react-native:
installed: 0.72.7
wanted: ^0.72.0
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

Steps to reproduce

I'm not exactly sure what caused this. My code was working until it wasn't. The accepted fixes from other issues raised hasn't worked.

Snack, screenshot, or link to a repository

https://github.com/Hum2a/Breathapplyser

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure in the linked Breathapplyser repository with npx react-native run-android on the reported Windows and React Native versions, then compare the output with npx react-native info. Investigate the Metro/Watchman resolution behavior indicated by the “none of these files exist” message. Done means the app bundles without resaving every JavaScript file and the relevant diagnostics no longer report the failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.