When js import a library, the node_modules path of another library directly introduced by the require method in the library is incorrect.

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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e39064-42fdb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e39064-42fdb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?