0

我有一个 repo(React,Webpack4,npm,babel),它可以在我的机器(原始和新克隆)上安装并运行良好,但是当下拉到另一台机器时它会抛出错误npm start(在成功运行npm install.

Module not found: Error: Can't resolve 'react-tabs' in XXX

有问题的依赖项react-tabs安装在node_modules两台机器上。

./src/containers/PAGE.js 中的错误找不到模块:错误:无法解析“/home/Repos/PROJECT/src/containers”中的“react-tabs”@ ./src/containers/PAGE.js 11 :0-58 9095:88-92 9095:120-127 9095:155-158 9099:38-41 9103:34-37 9107:35-38 9111:39-42 9115:37-40 9115:74-77 9115 :182-190 9119:27-35 9123:27-35 9127:27-35 9131:27-35 9135:27-35 9135:64-72 @ ./src/App.js @ ./src/index.js @ multi ./src/index.js "index.html" 的子 html-webpack-plugin:1 个资产入口点未定义 = ./index.html [./node_modules/html-webpack-plugin/lib/loader.js!。 /src/index.html] 574 字节 {0} [内置] [./node_modules/lodash/lodash.js] 528 KiB {0} [内置] [./node_modules/webpack/buildin/global.js] (webpack) /buildin/global.js 472 字节 {0} [内置] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] ℹ 「wdm」:编译失败。

4

0 回答 0