Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

头条小程序运营报错:Cannot read property 'code' of undefined #7479

Closed
fangxiaoxingit opened this issue Aug 31, 2020 · 0 comments
Closed
Labels
F-vue2 Framework - Vue 2 T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x

Comments

@fangxiaoxingit
Copy link

fangxiaoxingit commented Aug 31, 2020

相关平台

字节跳动小程序

小程序基础库: 1.75.0.9
使用框架: Vue 2

复现步骤

打开头条小程序开发工具即出现报错,实际没有 ./base 文件

期望结果

正常运行

实际结果

`in file ./pages/home/index

Error:

in file ./base

./utils.wxs not found:

1 |
| ^
2 |
3 |
4 | `

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 v3.0.8


  Taro CLI 3.0.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.3 - D:\Program Files\nodejs\node.EXE
      npm: 6.14.6 - D:\Program Files\nodejs\npm.CMD

补充信息

运行头条就出现问题,头条开发工具2.0.1版本

@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x labels Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant