【问题标题】:React Native VSCode Debug on M1在 M1 上反应原生 VSCode 调试
【发布时间】:2022-08-17 01:55:11
【问题描述】:

尝试在 Apple M1 中设置 VSCode React-Native 开发环境时,是否有更新的检查内容列表?

我可以运行代码,但我似乎无法在 VSCode 中调试它。

这甚至给了我一个错误。关于从哪里开始的想法?

xxxxx(主)

$ npx react-native doctor
⠇ Running diagnostics...error Reduce of empty array with no initial value.
TypeError: Reduce of empty array with no initial value
    at Array.reduce (<anonymous>)
    at Object.getDiagnostics (/Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli-doctor/build/tools/healthchecks/xcodeEnv.js:86:8)
    at /Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli-doctor/build/commands/doctor.js:145:29
    at Array.map (<anonymous>)
    at iterateOverHealthChecks (/Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli-doctor/build/commands/doctor.js:135:51)
    at Array.map (<anonymous>)
    at iterateOverCategories (/Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli-doctor/build/commands/doctor.js:168:70)
    at Object.doctorCommand [as func] (/Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli-doctor/build/commands/doctor.js:170:41)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.handleAction (/Users/xxxxx/Projects/DoneWithIt/node_modules/@react-native-community/cli/build/index.js:190:9)
info Run CLI with --verbose flag for more details.

    标签: react-native apple-m1 vscode-debugger


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2016-09-24
      • 2021-06-14
      • 2021-06-11
      • 1970-01-01
      • 1970-01-01
      • 2021-08-17
      • 2020-12-17
      • 1970-01-01
      • 2019-09-13
      相关资源
      最近更新 更多