Avatar
0
tvd12 Enlightened
tvd12 Enlightened
React native debug UI trên android simulator
Hi anh em, mình đang muốn enable debug ui trên android simulator nhưng gặp lỗi này:<div class="markdown-block position-relative overflow-auto"> <pre> Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4 <span class="pl-k">from</span> /Users/xxx/Documents/projects/xxx/packages/mobile/.: <span class="pl-k">None</span> of these files exist: * debugger-ui/debuggerWorker.aca173c4(.native|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx|.native.svg|.svg) * debugger-ui/debuggerWorker.aca173c4/index(.native|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx|.native.svg|.svg) at ModuleResolver.resolveDependency (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:114:15) at DependencyGraph.resolveDependency (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/node-haste/DependencyGraph.js:277:43) at /Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/lib/transformHelpers.js:169:21 at Server._resolveRelativePath (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:1045:12) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at <span class="pl-k">async</span> Server._explodedSourceMapForBundleOptions (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:993:35) at <span class="pl-k">async</span> Promise.all (index 1) at <span class="pl-k">async</span> Server._symbolicate (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:945:26) at <span class="pl-k">async</span> Server._processRequest (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:418:7) </pre> </div><p> Anh em có cách nào khác phục không? Mình search google mà không thấy. </p> <p> Phiên bản: </p> <div class="markdown-block position-relative overflow-auto"> <pre> <span class="pl-s">"react-native"</span>: <span class="pl-s">"0.72.4"</span> <span class="pl-s">"@react-native-community/cli-debugger-ui@11.3.6"</span> </pre> </div>
Answer