头条小程序报错:./utils.wxs not found



  • in file ./pages/home/index
    
    Error:
    
    in file ./base
    
    ./utils.wxs not found:
    > 1 | <wxs module="xs" src="./utils.wxs" />
        |                       ^
      2 | <template name="taro_tmpl">
      3 |   <block wx:for="{{root.cn}}" wx:key="id">
      4 |     <template is="tmpl_0_container" data="{{i: item}}" />
    
    TypeError: Cannot read property 'code' of undefined
        at currentPageBuild (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\node_modules\byted-tma-pack\dest\worker.js:1:144177)
        at CallExpression (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\node_modules\byted-tma-pack\dest\worker.js:1:144450)
        at NodePath._call (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\path\context.js:76:18)
        at NodePath.call (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\path\context.js:48:17)
        at NodePath.visit (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\path\context.js:105:12)
        at TraversalContext.visitQueue (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\context.js:150:16)
        at TraversalContext.visitSingle (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\context.js:108:19)
        at TraversalContext.visit (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\context.js:192:19)
        at Function.traverse.node (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\index.js:114:17)
        at NodePath.visit (C:\Users\onlyf\AppData\Local\Programs\bytedanceide\resources\app.asar\node_modules\babel-traverse\lib\path\context.js:115:19)
    

    文件里面也没有引入这个,头条小程序一直报错,无法运行;Taro 3.0.8版本,vue开发


登录后回复