审核中~
溜忙之道
首页
溜忙手册
offer之道
项目Git
写文章
登录
·
注册
登录
没有账号,去注册
注册
已有账号,去登录
博客
TypeError: Cannot read property 'uglify' of undefined
南易_站长
阅读量:13881
关注
TypeError: Cannot read property 'uglify' of undefined
## TypeError: Cannot read property 'uglify' of undefined 这个错误一般是Taro 版本依赖的问题: ![WechatIMG22.png](https://fengzq.cn/upload/WechatIMG22_2020_1_2_15_32.png) Taro 提供了更新命令来更新 CLI 工具自身和项目中 Taro 相关的依赖 更新 Taro CLI 工具 ``` # taro $ taro update self # npm npm i -g @tarojs/cli@latest # yarn yarn global add @tarojs/cli@latest ``` 更新项目中 Taro 相关的依赖.更新了trao的版本之后必须使用此命令来初始化项目依赖。不然项目会有问题。 ``` $ taro update project [最新的版本号] ``` 全部更显后应该就可以了!
评论
表情
发送
0
评论