We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序
https://github.com/ILoveChy/issuesDemo 小程序基础库: 2.12.1 使用框架: React
随便一个地方输入Taro.env 都是undefined
Taro.env可以获取到
undefined
Taro v3.0.7 Taro CLI 3.0.7 environment info: System: OS: Windows 10 Binaries: Node: 14.7.0 - D:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - D:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.7 - D:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
这问题怎么解决?
Sorry, something went wrong.
更新Taro相关依赖 -> 暂时无法获取 使用wx.env.USER_DATA_PATH 无需任何引入直接编译可解决问题
wx.env.USER_DATA_PATH
fix(taro): 为 Taro 加上 env 属性,fix #7392
1c9551c
fc6a0c9
Successfully merging a pull request may close this issue.
相关平台
微信小程序
复现仓库
https://github.com/ILoveChy/issuesDemo
小程序基础库: 2.12.1
使用框架: React
复现步骤
随便一个地方输入Taro.env 都是undefined
期望结果
Taro.env可以获取到
实际结果
undefined
环境信息
The text was updated successfully, but these errors were encountered: