ERROR in Entry module not found: Error: Can’t resolve ‘./src’ with webpack@4.3.0

Do you want to request a feature or report a bug?
it is bug

What is the current behavior?
This is my webpack.config.js :
const browserConfig = {
entry :
APP_DIR + ‘client/index.js’,

output : {
  path : BUILD_DIR,
  filename : "[name] bundle.js",
  publicPath:BUILD_DIR,
},

};
If the current behavior is a bug, please provide the steps to reproduce.

C:\Idessign>webpack
Hash: 18bc2fd105d4883da519
Version: webpack 4.3.0
Time: 116ms
Built at: 2018-3-28 12:58:19

WARNING in configuration
The ‘mode’ option has not been set. Set ‘mode’ option to ‘development’ or ‘production’ to enable defaults for this environment.
ERROR in Entry module not found: Error: Can’t resolve ‘./src’ in ‘C:\Idessign’

What is the expected behavior?
compilation of files
If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
Version: webpack 4.3.0
node : v8.9.3
windows : 8.1 progetionnel

Author: Fantashit

2 thoughts on “ERROR in Entry module not found: Error: Can’t resolve ‘./src’ with webpack@4.3.0

  1. Why the error says “Can’t resolve ‘./src’ ” when in fact it can’t find “/src/index.js” ? This part is the most confusing

Comments are closed.