-
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 convert转换小程序的官方demo后运行dev:weapp报错 Unexpected "@" #13007
Comments
补充一个问题,我的电脑是 mac M1 的cpu,安装的node-sass不支持,报错 Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Unsupported runtime (93) For more information on which environments are supported please see: |
应该切换到 |
是说让taro内部切换吗还是我自己切换? |
内部 |
你仓库没看见这个错误呢 |
初步看 |
|
@fantasy525 感谢 @yoyo837 的提示,报错出在依赖预编译阶段,还没到 Webpack 打包阶段。依赖预编译时会使用 esbuild 进行 bundle,而 esbuild 只在 tsx loader 中实现了 |
666 |
@Chen-jj 发布新版本后关闭 |
等发布中。。。刚好遇到这个问题 |
嗨,我发现我把taro相关的包升级到最新版本就没node-sass的问题了 |
相关平台
微信小程序
复现仓库
https://github.com/fantasy525/taro_convert_weapp.git
小程序基础库: 2.28.1
使用框架: React
复现步骤
1.克隆代码
2.yarn
3.yarn dev:weapp
期望结果
编译成功,打开小程序能看到
实际结果
[ERROR] Unexpected "@"
✘ [ERROR] Unexpected "@"
✘ [ERROR] Unexpected "@"
环境信息
The text was updated successfully, but these errors were encountered: