1865281084-577471
@1865281084-577471
1865281084-577471 发布的帖子
-
UnhandledPromiseRejectionWarning: TypeError: items.forEach is not a function
todoList@1.0.0 build:h5 /Users/coderloy/2020-target-ali/car/demo/taro-todoList
taro build --type h5 "--watch"Taro v2.2.2
(node:1851) UnhandledPromiseRejectionWarning: TypeError: items.forEach is not a function
at /usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/utils/index.js:17:15
at /usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/utils/index.js:33:51
at Kernel.initPresetsAndPlugins (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:72:107)
at Kernel.<anonymous> (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:40:18)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:8:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:4:12)
at Kernel.init (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:36:16)
at Kernel.<anonymous> (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs_service@2.2.2@@tarojs/service/dist/Kernel.js:239:24)
(node:1851) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1851) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 1.39s.
怀疑是版本问题,卸载重新安装也不行。请问是什么原因?