简体   繁体   English

插件“react”中的错误在

[英]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.

相关问题 ESLint:插件“反应”在两者之间发生冲突 - ESLint: Plugin "react" was conflicted between 插件“反应”在“package.json ...”和“BaseConfig ...”之间发生冲突 - Plugin "react" was conflicted between "package.json ..." and "BaseConfig ..." 使用 nodemon 重新部署我的 React 应用程序时出错,它一直在说“插件“反应”在“package.json » eslint-config-react”-app » 之间发生冲突 - Error when redeploying my react app with nodemon it keeps sayings "Plugin "react" was conflicted between "package.json » eslint-config-react"-app » 使用带有反应的 jquery 插件时导入错误 - error with imports when using jquery plugin with react 错误:无法找到插件“gatsby-plugin-React-helmet” - Error: Unable to find plugin "gatsby-plugin-React-helmet" API 和 UI 之间的访问错误(react JS) - Access error between API and UI (react JS) 反应错误:不允许插件/预设文件导出对象,仅导出功能 - error on react: Plugin/Preset files are not allowed to export objects, only functions gatsby-plugin-react-svg 导致太多递归错误 - gatsby-plugin-react-svg causing too much recursion error 错误:找不到模块 'html-webpack-plugin' - Webpack (React) - Error: Cannot find module 'html-webpack-plugin' - Webpack (React) TinyMCE 使用 Save 插件时 React 中出现“错误:未找到表单元素” - TinyMCE 'Error: No form element found' in React when using the Save plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM