I have a repo (React, Webpack4, npm, babel) which installs & runs fine on my machine (original and fresh clone) but when pulled down to another machine it throws an error on npm start
(after successfully runnning npm install
.
Module not found: Error: Can't resolve 'react-tabs' in XXX
The dependency in question react-tabs
is installed in node_modules
on both machines.
ERROR in ./src/containers/PAGE.js Module not found: Error: Can't resolve 'react-tabs' in '/home/Repos/PROJECT/src/containers' @ ./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 Child html-webpack-plugin for "index.html": 1 asset Entrypoint undefined = ./index.html [./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 574 bytes {0} [built] [./node_modules/lodash/lodash.js] 528 KiB {0} [built] [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built] ℹ 「wdm」: Failed to compile.