Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to construct transformer: Error: Failed to start watch mode #48786

Closed
zx405 opened this issue Jan 20, 2025 · 3 comments
Closed

Failed to construct transformer: Error: Failed to start watch mode #48786

zx405 opened this issue Jan 20, 2025 · 3 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Type: Unsupported Version Issues reported to a version of React Native that is no longer supported

Comments

@zx405
Copy link

zx405 commented Jan 20, 2025

Description

When I was running version 0.72.5, there were no issues with compiling and building. However, after the compilation was completed, the node would normally automatically load index.js of app and enter the corresponding page of the app, but it did not and reported an error

Failed to construct transformer:  Error: Failed to start watch mode.
    at Timeout._onTimeout (D:\tfWork\hmpsieapp\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro-file-map\src\Watcher.js:192:24)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
error Failed to start watch mode.
Error: Failed to start watch mode.
    at Timeout._onTimeout (D:\tfWork\hmpsieapp\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro-file-map\src\Watcher.js:192:24)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

Causing my app to get stuck on the flashing screen and unable to continue loading

Steps to reproduce

after running the react native run android command, the node automatically picks up and waits for a long time to start compiling and building. after the compilation and building are completed, the node will start reporting errors shortly thereafter

React Native Version

0.72.5

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
  OS: Windows 11 10.0.26100
  CPU: (16) x64 AMD Ryzen 7 8845H w/ Radeon 780M Graphics
  Memory: 7.03 GB / 27.75 GB
Binaries:
  Node:
    version: 18.20.4
    path: C:\nvm4w\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\nvm4w\nodejs\yarn.CMD
  npm:
    version: 10.7.0
    path: C:\nvm4w\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: Not Found
  Visual Studio: Not Found
Languages:
  Java: 11.0.15
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

Failed to construct transformer:  Error: Failed to start watch mode.
    at Timeout._onTimeout (D:\tfWork\hmpsieapp\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro-file-map\src\Watcher.js:192:24)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
error Failed to start watch mode.
Error: Failed to start watch mode.
    at Timeout._onTimeout (D:\tfWork\hmpsieapp\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro-file-map\src\Watcher.js:192:24)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

Reproducer

no template

Screenshots and Videos

Image

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 20, 2025
@react-native-bot
Copy link
Collaborator

Warning

Unsupported version: It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

@react-native-bot react-native-bot added Type: Unsupported Version Issues reported to a version of React Native that is no longer supported and removed Needs: Triage 🔍 labels Jan 20, 2025
@react-native-bot
Copy link
Collaborator

Warning

Unsupported version: It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@zx405 zx405 closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Type: Unsupported Version Issues reported to a version of React Native that is no longer supported
Projects
None yet
Development

No branches or pull requests

2 participants