简体   繁体   中英

react-native: remote debugger stopped working

I always used the debugger with my app and my real device and today out of the blue it stopped working. When switching it on I'm getting this error in my terminal:

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

None of these files exist:
  * debugger-ui\debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
  * debugger-ui\debuggerWorker.cff11639.js\index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
    at ModuleResolver.resolveDependency (C:\Presto\Frontend 19-5\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (C:\Presto\Frontend 19-5\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (C:\Presto\Frontend 19-5\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
    at C:\Presto\Frontend 19-5\node_modules\metro\src\lib\transformHelpers.js:267:42
    at Server.<anonymous> (C:\Presto\Frontend 19-5\node_modules\metro\src\Server.js:841:41)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (C:\Presto\Frontend 19-5\node_modules\metro\src\Server.js:99:24)
    at _next (C:\Presto\Frontend 19-5\node_modules\metro\src\Server.js:119:9)

After I switch the deubgger on, the app is just stuck and I cannot press anything. Is there something I can do? I tried

gradlew clean

And it didn't help. I'm using Android and Windows 10.

I have temporary solution.

Solution 1 : Just uninstall already installed app which is your using currently.

Solution 2 : Go to your Settings >> find your app >> Clear data

The reason is The debugging mode is making the issue sometime.

app crash while turn on remote debugger RN 0.62.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM