[英]ERROR in Plugin "react" was conflicted between
Im using another react repo (lets call it design), in my main react app, as a git submodule.我在我的主要反应应用程序中使用另一个反应回购(我们称之为设计)作为 git 子模块。 I use webpack to build the main app.
我使用 webpack 来构建主应用程序。 After integrating the submodule in the app, Im getting the following error in the webpack build process -
在应用程序中集成子模块后,我在 webpack 构建过程中收到以下错误 -
ERROR in Plugin "react" was conflicted between "design/.eslintrc » @design-ui/eslint-config » ./eslint-config-react.js" and ".eslintrc » @design-ui/eslint-config » ./eslint-config-react.js".
Any idea whats causing this?知道是什么原因造成的吗?
There are 2 eslint-config-react.js in two of these locations "design/.eslintrc » @design-ui/eslint-config »./eslint-config-react.js" and ".eslintrc » @design-ui/eslint-config »./eslint-config-react.js".其中两个位置有 2 个 eslint-config-react.js “design/.eslintrc » @design-ui/eslint-config »./eslint-config-react.js” 和 “.eslintrc » @design-ui/ eslint-config »./eslint-config-react.js"。
Remove one of these and it should work.删除其中之一,它应该可以工作。 It's conflicting because there are two.
这是矛盾的,因为有两个。
The case in your folder in bash could be wrong. bash 文件夹中的案例可能是错误的。
Looked into it because of this answer: https://stackoverflow.com/a/71897799/901311 and this thread: https://github.com/reactjs/reactjs.org/issues/4186因为这个答案而调查它: https://stackoverflow.com/a/71897799/901311和这个线程: https://github.com/reactjs/reactjs.org/issues/4186
So if you have a folder:因此,如果您有一个文件夹:
/path/to/yourDirectory
Turns out these commands both work:原来这些命令都有效:
cd /path/to/yourDirectory
cd /path/to/yourdirectory
and pwd
will even report whatever one you entered, but when react runs the way it reconciles absolute and relative directories breaks with this. pwd
甚至会报告您输入的任何内容,但是当 react 运行时,它协调绝对和相对目录的方式与此中断。
so doing yarn start
from the incorrect directory will break these days.所以从不正确的目录
yarn start
会破坏这些天。
So try to cd in using tab completion 1 directory at a time and see if your final directory is in the same case as when you were having the error.因此,尝试一次 cd in using tab completion 1 目录,看看您的最终目录是否与您遇到错误时的情况相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.