是否有最新的清单可以检查在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.