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

【2.0.6】每次编译报错 #5711

Closed
xukaifengit opened this issue Mar 16, 2020 · 8 comments
Closed

【2.0.6】每次编译报错 #5711

xukaifengit opened this issue Mar 16, 2020 · 8 comments
Assignees

Comments

@xukaifengit
Copy link

问题描述

将taro升级到2.0.6后,每次编译都会报如下图的错,重新npm run dev:weapp又好了
image

复现步骤

将taro升级到2.0.6后,首次编译成功;重新编译就会在微信开发者工具控制台报错;再npm run dev:weapp后,报错就会消失,但稍微改动点代码,重新编译又会报同样的错误

/**
 * 这段注释后可以贴代码
 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间
 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】
 * 
 * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5
 */

期望行为

能够正常编译,不在控制台报错

报错信息

image

系统信息

Taro v2.0.6

Taro CLI 2.0.6 environment info:
System:
OS: macOS 10.14.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.13.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 2.0.6 => 2.0.6
@tarojs/mini-runner: ^2.0.6 => 2.0.6
@tarojs/plugin-babel: 2.0.6 => 2.0.6
@tarojs/plugin-csso: 2.0.6 => 2.0.6
@tarojs/plugin-less: 2.0.6 => 2.0.6
@tarojs/plugin-sass: 2.0.6 => 2.0.6
@tarojs/plugin-uglifyjs: 2.0.6 => 2.0.6
@tarojs/redux: 2.0.6 => 2.0.6
@tarojs/redux-h5: 2.0.6 => 2.0.6
@tarojs/router: 2.0.6 => 2.0.6
@tarojs/taro: 2.0.6 => 2.0.6
@tarojs/taro-alipay: 2.0.6 => 2.0.6
@tarojs/taro-h5: 2.0.6 => 2.0.6
@tarojs/taro-weapp: 2.0.6 => 2.0.6
@tarojs/webpack-runner: 2.0.6 => 2.0.6
eslint-config-taro: 2.0.6 => 2.0.6
eslint-plugin-taro: 2.0.6 => 2.0.6
nervjs: ^1.5.6 => 1.5.6

补充信息

如果您有功能上的建议,可以提到 FeatHub

使用上的问题,欢迎在「Taro 社区」一起交流

@taro-bot
Copy link

taro-bot bot commented Mar 16, 2020

CC @Chen-jj

@taro-bot
Copy link

taro-bot bot commented Mar 16, 2020

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

1、cli 与项目依赖版本保持一致
2、请阅读一下 2.x 升级指南

@xukaifengit
Copy link
Author

@luckyadam 刚把cli和项目依赖都删掉重新install,依旧是如此,每次编译控制台报错。版本现在都是2.0.6;但查看报错js进去是这样的
image

image

@xukaifengit
Copy link
Author

@luckyadam 我这边又降回原来的版本2.0.4;回退版本后出现了新的问题......taro-ui用不了了
image

@joshuaxing
Copy link

今天把1.x升级到2.0.6 遇到各种问题 把我难哭啦 我就弱弱的问一下2.x那个版本稳定

@taro-bot
Copy link

taro-bot bot commented Mar 17, 2020

CC @luckyadam

@ZakaryCode
Copy link
Contributor

今天把1.x升级到2.0.6 遇到各种问题 把我难哭啦 我就弱弱的问一下2.x那个版本稳定

当前最新版本是 2.2.14,2.2.9 以上的版本变动已经很小了

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

6 participants