Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs Expo React本机调试器-错误:无法从中解析模块`./Debugger ui/debuggerWorker.cff11639.js```_Reactjs_React Native_Expo_React Native Android - Fatal编程技术网

Reactjs Expo React本机调试器-错误:无法从中解析模块`./Debugger ui/debuggerWorker.cff11639.js```

Reactjs Expo React本机调试器-错误:无法从中解析模块`./Debugger ui/debuggerWorker.cff11639.js```,reactjs,react-native,expo,react-native-android,Reactjs,React Native,Expo,React Native Android,我刚开始使用React Native Expo,它有一个在Android emulator中运行的空白应用程序。但我在Chrome中尝试使用开发者工具的react本机调试器时出错 我从Expo中的开发者菜单中选择“Debug Remote JS”,它在Chrome中打开了这个窗口 从这里,我在chrome中打开developer tools后,立即出现以下错误: Error: Unable to resolve module `./debugger-ui/ui.bcd3f9d1.js` fro

我刚开始使用React Native Expo,它有一个在Android emulator中运行的空白应用程序。但我在Chrome中尝试使用开发者工具的react本机调试器时出错

我从Expo中的开发者菜单中选择“Debug Remote JS”,它在Chrome中打开了这个窗口

从这里,我在chrome中打开developer tools后,立即出现以下错误:

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

None of these files exist:
  * debugger-ui\ui.bcd3f9d1.js(.native|.native.expo.ts|.expo.ts|.native.expo.tsx|.expo.tsx|.native.expo.js|.expo.js|.native.expo.jsx|.expo.jsx|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.wasm|.wasm)
  * debugger-ui\ui.bcd3f9d1.js\index(.native|.native.expo.ts|.expo.ts|.native.expo.tsx|.expo.tsx|.native.expo.js|.expo.js|.native.expo.jsx|.expo.jsx|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.wasm|.wasm)
    at ModuleResolver.resolveDependency (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
    at C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\lib\transformHelpers.js:267:42   
    at Server.<anonymous> (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\Server.js:841:41)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\Server.js:99:24)
    at _next (C:\Users\Daniel\Projects.ReactNative\MyApp\node_modules\metro\src\Server.js:119:9)
我试过:

  • 删除
    node\u模块
    package lock.json
    然后
    npm安装
  • Chrome开发者工具中的空缓存和硬重新加载
  • 正在清除Expo缓存,
    Expo r-c
  • 在Android虚拟设备上重新安装Expo
试试这个

npx react-native start --reset-cache
npx react-native start --reset-cache