Skip to content
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

不启用cache时,能否不报警? #12556

Closed
ZiQiangWang opened this issue Sep 22, 2022 · 3 comments
Closed

不启用cache时,能否不报警? #12556

ZiQiangWang opened this issue Sep 22, 2022 · 3 comments
Labels
F-react Framework - React T-feishu V-3 Version - 3.x

Comments

@ZiQiangWang
Copy link

相关平台

飞书小程序

复现仓库

https://github.com

使用框架: React

复现步骤

执行 build 命令

期望结果

不要提示这个警告,因为在使用rush.js ,这种向 stderr 写入信息的情况会导致build失败
Tips:

  1. 建议开启持久化缓存功能,能有效提升二次编译速度,详情请参考: https://docs.taro.zone/docs/config-detail#cache。

实际结果

输出了警告

环境信息

Taro v3.5.6

  Taro CLI 3.5.6 environment info:
    System:
      OS: macOS 12.5.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 14.19.1 - ~/.nvm/versions/node/v14.19.1/bin/node
      Yarn: 1.22.18 - ~/.nvm/versions/node/v14.19.1/bin/yarn
      npm: 6.14.16 - ~/.nvm/versions/node/v14.19.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.5 => 3.5.5 
      @tarojs/components: 3.5.5 => 3.5.5 
      @tarojs/helper: 3.5.5 => 3.5.5 
      @tarojs/plugin-framework-react: 3.5.5 => 3.5.5 
      @tarojs/plugin-platform-weapp: 3.5.5 => 3.5.5 
      @tarojs/react: 3.5.5 => 3.5.5 
      @tarojs/router: 3.5.5 => 3.5.5 
      @tarojs/runtime: 3.5.5 => 3.5.5 
      @tarojs/shared: 3.5.5 => 3.5.5 
      @tarojs/taro: 3.5.5 => 3.5.5 
      @tarojs/taro-h5: 3.5.5 => 3.5.5 
      @tarojs/taro-loader: 3.5.5 => 3.5.5 
      @tarojs/webpack5-runner: 3.5.5 => 3.5.5 
      babel-preset-taro: 3.5.5 => 3.5.5 
      eslint-config-taro: 3.5.5 => 3.5.5 
      react: 17.0.2 => 17.0.2 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-feishu V-3 Version - 3.x labels Sep 22, 2022
@ZiQiangWang
Copy link
Author

开启缓存后,构建时有新的警告
image

@ZiQiangWang
Copy link
Author

logger.quiet 设置为 false

@wenfangdu
Copy link
Contributor

logger.quiet 设置为 false

@ZiQiangWang 试了一下,还是会显示,最后你是怎么解决的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-feishu V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants