gpt4 book ai didi

react-native - 世博会:无法解析模块'./debugger

转载 作者:行者123 更新时间:2023-12-03 07:29:45 26 4
gpt4 key购买 nike

重新加载后,我的应用程序已停止加载。

我已经尝试过模拟器和 2 个真实的设备,android 和 ios。

错误是:

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



有时我会收到错误消息“无法找到实例”。

我尝试了以下方法:
  • 清除守望者 watch :watchman watch-del-all .
  • 删除node_modules文件夹:rm -rf node_modules && npm install .
  • 重置 Metro Bundler 缓存:rm -rf /tmp/metro-bundler-cache-*npm start -- --reset-cache .
  • 移除急速缓存:rm -rf /tmp/haste-map-react-native-packager-* .
  • 重新启动计算机。
      Expo CLI 3.11.3 environment info:
    System:
    OS: macOS 10.15.2
    Shell: 5.7.1 - /bin/zsh
    Binaries:
    Node: 12.8.0 - ~/.nvm/versions/node/v12.8.0/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.8.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.2/11B41 - /usr/bin/xcodebuild
    npmPackages:
    expo: ~36.0.0 => 36.0.2
    react: ~16.9.0 => 16.9.0
    react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4
    react-navigation: ^4.0.10 => 4.0.10
    npmGlobalPackages:
    expo-cli: 3.11.3

  • 关于我还能尝试解决这个问题的任何想法?

    下面的完整错误:

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

    None of these files exist:
    * debugger-ui/debuggerWorker.d9da4ed7(.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/debuggerWorker.d9da4ed7/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 (/Users/serdarmustafa/task_location_namespace/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (/Users/serdarmustafa/task_location_namespace/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (/Users/serdarmustafa/task_location_namespace/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)
    at /Users/serdarmustafa/task_location_namespace/node_modules/metro/src/lib/transformHelpers.js:267:42
    at /Users/serdarmustafa/task_location_namespace/node_modules/metro/src/Server.js:1305:37
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/serdarmustafa/task_location_namespace/node_modules/metro/src/Server.js:99:24)
    at _next (/Users/serdarmustafa/task_location_namespace/node_modules/metro/src/Server.js:119:9)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)

    最佳答案

    我通过停止调试器解决了这个错误 cmd + d && Stop debugging然后在 chrome alt + control + click on reload button 中打开调试器选项卡上进行硬重新加载并选择Empty cache and hard reload然后重新启动调试器。

    关于react-native - 世博会:无法解析模块'./debugger,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59658998/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com