question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frequently losing debugging access while on latest RN version

See original GitHub issue

I’ve been using RN for about a year now and I love it.

In the last couple months however I am frequently losing access to the debugging tools. Debugger statements stop workin and console logs no longer work. Sometimes I’ll see older console logs but any new ones stop working.

Really annoying! The only way I know how to fix it is to quit the Simulator, run yarn start --reset-cache and recompile from scratch. I have to do this several times a day.

This is the error I start seeing in the console where yarn start is running. Once this happens a few times there’s no hope and I have to do the above steps

Error: Unable to resolve module `./debugger-ui/debuggerWorker.d9da4ed7` from ``:

None of these files exist:
  * debugger-ui/debuggerWorker.d9da4ed7(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
  * debugger-ui/debuggerWorker.d9da4ed7/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
    at ModuleResolver.resolveDependency (/Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (/Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (/Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)
    at /Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/lib/transformHelpers.js:267:42
    at /Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/Server.js:1305:37
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/Server.js:99:24)
    at _next (/Users/myname/mycompany/myapp/node_modules/react-native/node_modules/metro/src/Server.js:119:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
::1 - - [30/Jan/2020:20:30:27 +0000] "POST /symbolicate HTTP/1.1" 500 - "-" "myapp/8 CFNetwork/1121.2.1 Darwin/19.0.0"

React Native version:

System:
    OS: macOS 10.15.1
    CPU: (4) x64 Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
    Memory: 26.24 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.16.0 - /var/folders/11/4dsnq9p12xx9s0lt7l20fbfh0000gq/T/yarn--1580416524443-0.8441704962126151/node
    Yarn: 1.21.1 - /var/folders/11/4dsnq9p12xx9s0lt7l20fbfh0000gq/T/yarn--1580416524443-0.8441704962126151/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 26, 27, 28
      Build Tools: 26.0.2, 27.0.3, 28.0.3
      System Images: android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5900203
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: ^2.7.0 => 2.10.0
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:15
  • Comments:19

github_iconTop GitHub Comments

2reactions
bobber205commented, Feb 4, 2020

This is becoming a huge issue – wasting tons of time trying to work around it.

Almost everyday after about an hour or so of development I lose all access to the debugger.

Error: Unable to resolve module `./debugger-ui/debuggerWorker.d9da4ed7` from ``:

Can this please be prioritized or have some input from the react native team? I never saw this before 0.61.5

1reaction
flachecommented, Apr 18, 2020

Manually setting the cli-debugger-ui version in package.json solved it for me, as described here https://github.com/react-native-community/cli/issues/1081#issuecomment-614223917

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging React Native with react-native-debugger
This article will help you learn how to use React Native Debugger and aid you build and debug your app quicker. Check React...
Read more >
No apps connected. Sending "reload" to all React Native apps ...
What did the trick for me was the following: In Xcode go to Debug/Detach from YourAppName Then reattach it ...
Read more >
Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >
Troubleshoot Breakpoints in the Visual Studio Debugger
Go to the Modules window (Debug > Windows > Modules) and check whether your module is loaded. If your module is loaded, check...
Read more >
Prisma Access Known Issues - Palo Alto Networks
When using a Panorama with a version of 11.0 to manage Prisma Access, ... Prisma Access, certificates can be lost after a plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found