问题描述
如题,编译过程中报:Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
生成 工具配置 dist/project.config.json
编译 入口文件 src/app.js
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
拷贝 NPM文件 dist/npm/promise-polyfill/lib/index.js
期望行为
正常编译,没有warning
报错信息

系统信息
Taro CLI 1.3.2 environment info:
System:
OS: macOS 10.14.5
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.0 - ~.tnvm/versions/alinode/v4.7.0/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~.tnvm/versions/alinode/v4.7.0/bin/npm
npmPackages:
@tarojs/async-await: 1.3.2 => 1.3.0
@tarojs/components: 1.3.2 => 1.3.0
@tarojs/plugin-babel: 1.3.2 => 1.3.0
@tarojs/plugin-csso: 1.3.2 => 1.3.0
@tarojs/plugin-sass: 1.3.2 => 1.3.0
@tarojs/plugin-uglifyjs: 1.3.2 => 1.3.0
@tarojs/redux: 1.3.2 => 1.3.1
@tarojs/redux-h5: 1.3.2 => 1.3.0
@tarojs/router: 1.3.2 => 1.3.0
@tarojs/taro: 1.3.2 => 1.3.0
@tarojs/taro-alipay: 1.3.2 => 1.3.0
@tarojs/taro-h5: 1.3.2 => 1.3.0
@tarojs/taro-swan: 1.3.2 => 1.3.0
@tarojs/taro-tt: 1.3.2 => 1.3.0
@tarojs/taro-weapp: 1.3.2 => 1.3.0
@tarojs/webpack-runner: 1.3.2 => 1.3.0
eslint-config-taro: ^1.3.2 => 1.3.0
eslint-plugin-taro: ^1.3.2 => 1.3.0
nerv-devtools: ^1.4.1 => 1.4.1
nervjs: ^1.4.1 => 1.4.1
npmGlobalPackages:
typescript: 3.3.4000
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~

同样的警告,这个有对应的配置项吗?
把项目依赖也升级到 1.3.2
同问
Hello~
您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。
如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。
Good luck and happy coding~
把项目依赖也升级到 1.3.2
已经升级了,但是还是会报~
eslint-plugin-react 是不是没升级
eslint-plugin-react 是不是没升级
升了
"dependencies": {
"@tarojs/async-await": "1.3.3",
"@tarojs/components": "1.3.3",
"@tarojs/redux": "1.3.3",
"@tarojs/redux-h5": "1.3.3",
"@tarojs/router": "1.3.3",
"@tarojs/taro": "1.3.3",
"@tarojs/taro-alipay": "1.3.3",
"@tarojs/taro-h5": "1.3.3",
"@tarojs/taro-swan": "1.3.3",
"@tarojs/taro-tt": "1.3.3",
"@tarojs/taro-weapp": "1.3.3",
"nerv-devtools": "^1.4.1",
"nervjs": "^1.4.1",
"redux": "^4.0.1",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"taro-ui": "^2.2.1"
},
"devDependencies": {
"@tarojs/plugin-babel": "1.3.3",
"@tarojs/plugin-csso": "1.3.3",
"@tarojs/plugin-sass": "1.3.3",
"@tarojs/plugin-uglifyjs": "1.3.3",
"@tarojs/webpack-runner": "1.3.3",
"@types/react": "^16.8.22",
"@types/webpack-env": "^1.13.9",
"argh": "^0.1.4",
"babel-eslint": "^8.2.6",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-plugin-transform-jsx-stylesheet": "^0.6.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.7.0",
"chalk": "^2.4.2",
"ejs": "^2.6.2",
"eslint": "^5.16.0",
"eslint-config-taro": "1.3.3",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-react": "^7.14.0",
"eslint-plugin-taro": "1.3.3",
"qs": "^6.7.0"
},
这个问题解决了吗? 我也碰到了同样的问题 @yuche
Taro CLI 1.3.10 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.16.0 - ~/.nvm/versions/node/v10.15.3/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
npmPackages:
@tarojs/async-await: ^1.3.13 => 1.3.13
@tarojs/components: 1.3.10 => 1.3.10
@tarojs/plugin-babel: 1.3.10 => 1.3.10
@tarojs/plugin-csso: 1.3.10 => 1.3.10
@tarojs/plugin-sass: 1.3.10 => 1.3.10
@tarojs/plugin-uglifyjs: 1.3.10 => 1.3.10
@tarojs/router: 1.3.10 => 1.3.10
@tarojs/taro: 1.3.10 => 1.3.10
@tarojs/taro-alipay: 1.3.10 => 1.3.10
@tarojs/taro-h5: 1.3.10 => 1.3.10
@tarojs/taro-qq: 1.3.10 => 1.3.10
@tarojs/taro-quickapp: 1.3.10 => 1.3.10
@tarojs/taro-swan: 1.3.10 => 1.3.10
@tarojs/taro-tt: 1.3.10 => 1.3.10
@tarojs/taro-weapp: 1.3.10 => 1.3.10
@tarojs/webpack-runner: 1.3.10 => 1.3.10
eslint-config-taro: 1.3.10 => 1.3.10
eslint-plugin-taro: 1.3.10 => 1.3.10
nerv-devtools: ^1.4.0 => 1.4.3
nervjs: ^1.4.0 => 1.4.3
stylelint-config-taro-rn: 1.3.10 => 1.3.10
stylelint-taro-rn: 1.3.10 => 1.3.10
npmGlobalPackages:
typescript: 3.4.5
把项目依赖也升级到 1.3.2
同样无效
Most helpful comment