'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. I use webpack to build the main app. After integrating the submodule in the app, Im getting the following error in the webpack build process -

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?



Solution 1:[1]

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".

Remove one of these and it should work. It's conflicting because there are two.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Susmita Sil