-
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
@tarojs/cli创建和启动项目报错 #12676
Comments
您的 Issue 没有按照规范从 Taro Issue Helper 创建,因此会被直接关闭。 维护开源项目是一项非常辛苦的工作,还请多多包涵。 |
1 similar comment
您的 Issue 没有按照规范从 Taro Issue Helper 创建,因此会被直接关闭。 维护开源项目是一项非常辛苦的工作,还请多多包涵。 |
swc 1.3.9 存在问题 |
要怎么解决,最新的taro版本3.5.6遇到 throw new Error( |
我把node升到18可以用3.5.6,或者低版本的用3.4.x也可以 #12171 |
刚nvm试了node升级到v18.9.0还是会出现swc这个报错问题 |
据反馈,应该是安装 猜测可能与各位的系统、Node 版本、包管理工具及其版本、registry、网络环境等相关。 因此需要各位提供以上信息再作分析。 目前找到最有可能的解析:npm/cli#4828 (comment) |
node升级后还是出现这个swc问题,将taro指定到3.4.x就没有这个问题了 |
这种问题怎么解决好点,看别人出现的也比较多 |
我也遇到了类似的问题,已解决。供遇到类似问题的朋友参考。 小程序旧项目,从 3.4.9 升级到 3.5.6 后编译出错,node 版本 12 和16 都试了,都报同样的错误。 排查过程: 1、排查异常堆栈信息,出错的地方在 swc,再往上看调用栈,有一行 2、这是 source map 里的代码行数,比较幸运的是在 3、执行 taro build,找到报错的代码文件,有问题的原代码比较简单,是page的配置文件: const config = {
allowsBounceVertical: 'NO',
pullRefresh: 'false'
};
export default config; 4、随便对比了两个打印的正常编译的其他配置文件后,更改为下面形式后修复了 swc 的编译问题: export default {
allowsBounceVertical: 'NO',
pullRefresh: 'false'
}; 这里有个 issue,跟我遇到的是同一个问题 #12674 |
Hey buddy, I have encountered the same issue as you and have solved it, I would like to share my experience with you to see if it can help. |
今天把全局 |
3.6.2版本遇到相同的问题 |
|
安装Microsoft Visual C++运行起来了,这个问题真恶心 ,下载地址:https://learn.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170 |
可以! 解决问题了 |
Thanks bro. install rust environment solved my problem. |
我使用@tarojs/cli创建和启动项目遇到令我十分困惑的问题:
插件依赖 "${item}" 加载失败,请检查插件配置
);The text was updated successfully, but these errors were encountered: