我在我的主 React 应用程序中使用另一个 React 存储库(我们称之为设计)作为 git 子模块。我使用 webpack 来构建主应用程序。将子模块集成到应用程序中后,我在 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".
知道是什么原因造成的吗?
其中两个位置有 2 个 eslint-config-react.js “design/.eslintrc » @design-ui/eslint-config » ./eslint-config-react.js”和“.eslintrc » @design-ui/ eslint-config » ./eslint-config-react.js"。
删除其中之一,它应该可以工作。这是矛盾的,因为有两个。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)