导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. 1865281084-577471
    1
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    1865281084-577471

    @1865281084-577471

    0
    声望
    2
    帖子
    154
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    1865281084-577471 关注

    1865281084-577471 发布的帖子

    • taro 编译后很大,已经做了极限处理,文件还是超出了2048

      c1648e5f-48ec-4b24-a683-f3919edc0992-image.png

      发布在 Taro
      1
      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.

      怀疑是版本问题,卸载重新安装也不行。请问是什么原因?

      发布在 提 Bug
      1
      1865281084-577471