Closed moyupoi closed 1 year ago
能自行安装一下跳过吗?
怎么跳过?yarn global add @tarojs/cli@v3.0.14很多次了,安装好后taro info就报这个错,感觉是这个版本的问题
提示找不到的这个呀 安装一下 @babel/plugin-syntax-import-assertions
Contributor 执行过@babel/plugin-syntax-import-assertions,单独安装后依然无效
安装后报什么错
知道是怎么回事了,yarn global add @tarojs/cli@v3.0.14这样做是覆盖不了之前的版本的,必须要先remove掉这个全局版本之后再次add才可以,也就是说add并没有把版本库全部清除后覆盖,没关系已经解决了谢谢
yarn global add @tarojs/cli@latest yarn global add @tarojs/cli@v3.0.14 这样就会报错 必须要先remove yarn global add @tarojs/cli@latest yarn remove global add @tarojs/cli@latest yarn global add @tarojs/cli@v3.0.14 这样才可以,记录一下
那先关闭咯!
相关平台
H5
浏览器版本: 116.0.5845.140 使用框架: React
复现步骤
yarn dev:h5 启动报错
期望结果
公司的老项目,以前可以启动,taro-cli重新安装3.0.14和项目中的版本对上的,项目也是一直用3.0.14,今日尝试启动发现启动报错找不到@babel/plugin-syntax-import-assertions,安装@babel/plugin-syntax-import-assertions后依然无效
实际结果
期望能正常启动,辛苦帮忙看下
环境信息
补充信息