react-notifications library and material-ui library are used when reactjs is developed, both of which depend on react-transition-group library, react-notifications depends on version 1.2.1, and material-ui depends on version 2.2.1. When, npm install is installed, the directory structure is react-transition-group1.2.1 installed under node_nodules of react-notifications under node_modules, and react-transition-group2.2.1 installed under node_modules. But when using it, we found that react-notifications library
var _reactTransitionGroup = require("react-transition-group");
actually introduces the 2.2.1 version of node _ modules above, and does not refer to the 1.2.1 version of the current node_module. The react-notifications directory is shown below, and the packaging method is webpack, help