【发布时间】: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