-
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
使用v4.0.4脚手架安装 react vite 版本 编译微信小程序报错 #16226
Comments
装一下依赖就好啦 |
可以先用v3, v4 刚出,坑是不少 |
好的,我尝试下 |
我本来想把uni-vue3 重构成taro-react的,结果我按着文档来拉模板都会少依赖 |
mark, 依然启动起来报错 TypeError: taro.getDefaultExportFromCjs is not a function |
package.json->browserslist 改成这样 {
"browserslist": [
"defaults and fully supports es6-module",
"maintained node versions"
],
} 但是Form的children显示不出来,目前没试其他组件 |
原来不止我一个人这样😭 |
求解决方案,mac m1 报错 |
@dyt123456 一个是上面 DankeBIBI 说的安装依赖, 一个是上面 Phyzait 说的修改浏览器列表 |
两种方法都试了,还是报错 |
4.0.7还是报错 |
4.0.7了,这个问题你们解决了没有,我也遇到了 |
我退回到4.0.0-beta.82就不报错了,只能先用着,看看后面有没有啥解决方法 |
没去关注了,之前公司搞个小程序想用这个框架的,后来报错就换了别的 |
你们换了uniapp还是什么 |
相关平台
微信小程序
小程序基础库: 3.5.1
使用框架: React
复现步骤
正常使用taro 命令创建项目,然后 dev:weapp
首先缺少
✓ 1 modules transformed.
[babel] [BABEL] D:\project\react-test\D:\project\react-test\src\app.ts?entry-loader=true: Cannot find module '@babel/preset-react'
然后缺少
✓ 1 modules transformed.
[babel] [BABEL] D:\project\react-test\D:\project\react-test\src\app.ts?entry-loader=true: Cannot find module '@babel/plugin-proposal-class-properties'
然后安装依赖完毕后 run dev:weapp
微信开发工具控制台报
app.js错误:
TypeError: taro.getDefaultExportFromCjs is not a function
期望结果
正常运行
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: