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

wepy 打包处理的dist目录,用Taro v1.2.0-beta.3版本执行convert命令时,会提示Cannot set property 'decorators' of undefined #1297

Closed
kucy opened this issue Nov 29, 2018 · 2 comments

Comments

@kucy
Copy link

kucy commented Nov 29, 2018

问题描述
执行taro convert命令失败

复现步骤
wepy 执行打包命令后
在dist目录执行 taro convert

[或者可以直接贴源代码,能贴文字就不要截图]

期望行为
[这里请用简洁清晰的语言描述你期望的行为]

报错信息

TypeError: Cannot set property 'decorators' of undefined
at CallExpression (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_@[email protected]@@tarojs/taroize/lib/src/script.js:61:42)
at NodePath._call (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/context.js:150:16)
at TraversalContext.visitSingle (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/context.js:108:19)
at TraversalContext.visit (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/context.js:192:19)
at Function.traverse.node (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/index.js:114:17)
at NodePath.visit (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/path/context.js:115:19)
at TraversalContext.visitQueue (/usr/local/lib/node_modules/@tarojs/cli/node_modules/_babel-traverse@6.26.0@babel-traverse/lib/context.js:150:16)

系统信息

  • 操作系统: [mac]
  • Taro 版本 [Taro v1.2.0-beta.3 ]
  • Node.js 版本 [v8.0.0]
  • 报错平台 []

试了两个项目。都出现了这个错误

@taro-bot
Copy link

taro-bot bot commented Nov 29, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@yuche
Copy link
Contributor

yuche commented Nov 29, 2018

#955 (comment)
这是一个问题。

第二个问题是转换不了 wepy 代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants