I am getting this error when I npm start my webpack-dev-server:
ERROR in multi main
Module not found: Error: Cannot resolve \'file\' or \'directory\' /var/ww
The same problem I met. I found an answer in github Error : ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory'#981. But sadly, in webpack 1.15.12, the --allow-incompatible-update
has been remove. Also, I found when set the entry type is array, such as entry: [entry.js]
, webpack will run, but throw another error:(
I wish it can help you, hopefully.