zoukankan      html  css  js  c++  java
  • taro 报错及解决

    1、解决:taro 升级到最新版(npm install -g @tarojs/cli

    错误  组件编译  组件src/pages/xxx/xxx.tsx编译失败!
    TypeError: callee.node.arguments is not iterable
        at loopComponents.forEach (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/render.js:652:48)
        at Map.forEach (<anonymous>)
        at RenderParser.handleLoopComponents (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/render.js:633:33)
        at new RenderParser (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/render.js:842:14)
        at Transformer.parseRender (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/class.js:488:19)
        at Transformer.compile (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/class.js:500:14)
        at new Transformer (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/class.js:102:14)
        at transform (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/transformer-wx/lib/src/index.js:435:14)
        at buildSingleComponent (/usr/local/lib/node_modules/@tarojs/cli/src/weapp.js:1511:29)
        at Promise.all.componentPathList.map.componentObj (/usr/local/lib/node_modules/@tarojs/cli/src/weapp.js:1416:60)
    

    2、解决:taro 升级到最新版(npm install -g @tarojs/cli

    错误  页面编译  页面/src/pages/home/index编译失败!
    TypeError: Cannot read property 'wxss' of undefined
        at buildDepComponentsResult.map.item (/usr/local/lib/node_modules/@tarojs/cli/src/weapp.js:1423:23)
        at Array.map (<anonymous>)
        at getDepStyleList (/usr/local/lib/node_modules/@tarojs/cli/src/weapp.js:1422:44)
        at buildSinglePage (/usr/local/lib/node_modules/@tarojs/cli/src/weapp.js:1264:28)
    
  • 相关阅读:
    ConfigurationManager读取dll的配置文件
    计算机常用英语词汇
    Com与.Net互操作
    C#创建COM组件供VB,PB,Delphi调用
    程序员的自我修养
    .NET Remoting三种信道Http,Tcp,IPC和Web Service的访问速度比较(转)
    .NET Remoting与Socket、Webservice和WCF的比较及优势 (转)
    .NET Remoting 入门实例
    关于Assembly.LoadFrom和Assembly.LoadFile的区别
    大数据处理中必不可少的概念
  • 原文地址:https://www.cnblogs.com/cag2050/p/10725789.html
Copyright © 2011-2022 走看看