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
H5
https://gitee.com/wanglugitee/repeat-bug.git 浏览器版本: 谷歌 版本 91.0.4472.77(正式版本) (x86_64) 使用框架: React
执行npm run dev:h5即可
在不升级版本 或者降级版本的前提下 允许可以更改变量名
使用cross-env NODE_ENV=dev自定义变量名 抛出异常 无法正常运行
Taro CLI 3.2.13 environment info: System: OS: macOS 10.15.7 Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.16.1 - /usr/local/bin/node Yarn: 1.22.10 - ~/.npm-global/bin/yarn npm: 7.15.0 - ~/.npm-global/bin/npm npmPackages: @tarojs/components: 3.1.4 => 3.1.4 @tarojs/mini-runner: 3.1.4 => 3.1.4 @tarojs/react: 3.1.4 => 3.1.4 @tarojs/runtime: 3.1.4 => 3.1.4 @tarojs/taro: 3.1.4 => 3.1.4 @tarojs/webpack-runner: 3.1.4 => 3.1.4 babel-preset-taro: 3.1.4 => 3.1.4 eslint-config-taro: 3.1.4 => 3.1.4 react: ^17.0.0 => 17.0.2
The text was updated successfully, but these errors were encountered:
跪求各位大佬麻烦看一下怎么解决这个问题😢
Sorry, something went wrong.
@CoquettishPoppy 参考这里关闭 Fast Refresh 试试
https://github.com/NervJS/taro/releases?after=v3.1.1
@CoquettishPoppy 参考这里关闭 Fast Refresh 试试 https://github.com/NervJS/taro/releases?after=v3.1.1
解决了 谢谢大佬
如果不想关闭Fast Refresh,又想自定义环境变量名怎么办
我这俩都关闭了,但还会出热更新错误
No branches or pull requests
相关平台
H5
复现仓库
https://gitee.com/wanglugitee/repeat-bug.git
浏览器版本: 谷歌 版本 91.0.4472.77(正式版本) (x86_64)
使用框架: React
复现步骤
执行npm run dev:h5即可
期望结果
在不升级版本 或者降级版本的前提下 允许可以更改变量名
实际结果
使用cross-env NODE_ENV=dev自定义变量名 抛出异常 无法正常运行
环境信息
The text was updated successfully, but these errors were encountered: