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

1.3.7 微信小程序报错:Uncaught TypeError: taro.Link is not a constructor #3755

Closed
jisong-zhu opened this issue Jul 10, 2019 · 3 comments

Comments

@jisong-zhu
Copy link

问题描述
升级到taro 1.3.7版本,编译微信小程序版本,在微信开发者工具打开编译后的代码,报错:
WAService.js:1 Uncaught TypeError: taro.Link is not a constructor

复现步骤
升级到1.3.7,依赖包和tarojs/cli都是1.3.7

期望行为
正确运行

报错信息
image

系统信息

  • 操作系统: Windows 10
  • Taro 版本 v
  • Node.js 版本 8.11.3
  • 报错平台 weapp

补充信息
原因排查,在编译后的目录中,npm文件加下,缺少了@tarojs/taro相关文件
image

@taro-bot
Copy link

taro-bot bot commented Jul 10, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@ZhongMingKun
Copy link

升级cli到1.3.8,再重新装一下依赖试试,我昨天也是升级后没法用了

@laozijiaojiangnan
Copy link

export {object} 是不是没加这一步导出模型

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

3 participants