ERROR in Entry module not found: Error: Can’t resolve ‘ ./src/entry.js’ in ‘E:\webpack_demo’

const path = require(‘path’);
module.exports = {
entry: { //入口配置
entry:’ ./src/entry.js’
},
output: { //出口配置
path: path.resolve(__dirname, ‘dist’),
filename: ‘bundle.js’
},
module:{},
plugins:[],
devServer:{}
};

E:\webpack_demo>webpack
Hash: 56eb239dc6531f2f8fb1
Version: webpack 4.2.0
Time: 106ms
Built at: 2018-4-10 16:32:42

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/entry.js’ in ‘E:\webpack_demo’

Author: Fantashit

1 thought on “ERROR in Entry module not found: Error: Can’t resolve ‘ ./src/entry.js’ in ‘E:\webpack_demo’

Comments are closed.