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_APP_ID无效 #14979
Comments
详细提供一下 |
@bigmeow 帮忙看一下我的问题,以下是我的配置 |
@bigmeow 并且还有热重载无效,不能实时更新小程序开发工具控制台输出了Page loaded但是页面内容并没有更新 |
我和你遇到了一样的问题,很遗憾taro init xxx 拉取的脚手架之中无法让你在开发环境获取环境变量 这里需要手动修改启动命令
最后我成功实现了获取 |
同样的问题,到底怎么解决的呢? @Linxiaoxxx @bigmeow |
环境变量配置文件的文件名按下面这样改:
命令中
|
相关平台
微信小程序
小程序基础库: 3.1.1
使用框架: React
复现步骤
在.env.development 和 .env.production 文件分别配置 TARO_APP_ID="wxc...."
使用npm run build:weapp 无效从开发环境的appid切换为生产环境的
期望结果
可以根据环境正常切换
实际结果
无法根据环境切换
环境信息
The text was updated successfully, but these errors were encountered: