-
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
升级到2.2.14后无法得到正确的小程序build #7674
Comments
安装完2.2.14后,直接改动/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/helper/dist/utils.js 文件到以前的样子就正常了。 |
好巧。。我也遇到了 |
未能复现该问题,方便提供一个可复现的项目么 |
babel: {
presets: [
['env', { modules: false}]
],
} 项目中babel配置如上就能复现 修改成如下配置就可以正常build
|
按照如上方法并不能复现该问题 |
我这边遇到问题的原因是项目中引用了taro-ui ,build之后报了无法找到taro-UI相关组件的错误,根据2.2.13修复的babel-preset-env配置问题的提交记录,验证之后才有的以上的解决方法 taro-ui中也有相关的issue1052 |
presets: [
- ['env', { modules: false }]
+ ['env']
], |
相关平台
微信小程序
小程序基础库: 2.12.2
使用框架: React
复现步骤
npm -g install @tarojs/[email protected]
cd my_wechat_app_folder
npm run build:weapp
期望结果
可以正确build
实际结果
报错,找不到组件
环境信息
补充信息
3453ca7#diff-1607241144e4efce8a5cbc34fa7786f2L441
就是这个PR #7360 改动的问题。
The text was updated successfully, but these errors were encountered: