仍然报错,那么参考下面:
其次:根据 https://github.com/nrwl/nx/issues/8660#issuecomment-1024834690 提到「I checkhed that "eslint-plugin-react-hooks": "4.3.0" is installed which might fix the issue, in my project I used v 4.2 which I then upgraded to 4.2.1-rc and the issue gone」
环境:
.eslintrc文件内容
报错: ESLint couldn't find the config "plugin:react/jsx-runtime" to extend from. Please check that the name of the config is correct.
首先,根据 npm包说明 打开备注,把对应的依赖看下是不是建议的;
在本机可以成功运行lint,但在同事机器仍然报上述错误,怀疑可能是依赖问题
仍然报错,那么参考下面: 其次:根据 https://github.com/nrwl/nx/issues/8660#issuecomment-1024834690 提到「I checkhed that "eslint-plugin-react-hooks": "4.3.0" is installed which might fix the issue, in my project I used v 4.2 which I then upgraded to 4.2.1-rc and the issue gone」
得到解决。
上面匆忙处理,感觉整体下来怪怪的。