-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
taro降级后,版本混乱 #5172
Comments
CC @luckyadam |
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
看报错信息里,Taro CLI 好像没降级成功? 项目内可以存在
这样就可以直接用 |
可能是因为我的cli是用npm全局安装的,降级的时候npm出错了所以用了yarn,而yarn在全局安装cli的时候和npm不一样,所以导致运行时检测版本不一致..... |
项目可以采用不同于全局的 CLI 版本,并且 |
收到,非常感谢!!! |
优先会用你当前项目的cli,而全局安装的cli适合给稳定项目用 |
好的,感谢!! |
问题描述
将原始项目(基于taro1.3.29创建的微信小程序项目)升级到2.0.0-beta.10,并依据#4837修改config,安装依赖后,使用
yarn dev:h5
运行,发现了一些问题(见#5165),之后降级,降级方法如下:1, 使用
yarn global add @tarojs/[email protected]
降级cli, ( 使用npm i -g @tarojs/[email protected]
报错:Unhandled rejection RangeError: Maximum call stack size exceededill install loadIdealTree
);2, 另建一个新项目(基于taro1.3.29)
taro init xxx
,并移植package.json
; ( 进行这一步是因为2.0版本中新安装了两个babel插件,移除yarn remove
的时候有问题,并且不知道taro的其他相关依赖和其版本是什么对应关系.至少不知道nervjs
和taro的版本怎么对应,所以...)3, 移除原项目中的
node_modules
目录和yarn.lock
文件, 恢复config/index.js
, 重新执行yarn install
, 之后执行yarn dev:weapp
, 无法运行项目复现步骤
taro dev:wepp
运行期望行为
能够正常降级,降级之后能正常运行项目
报错信息
系统信息
The text was updated successfully, but these errors were encountered: