当我运行webpack时,出现了如下错误:
ERROR in Entry module not found: Error: Cannot resolve module 'game'
in /Users/frederikcreemers/dev/dark_chess
但我确定game.js
是存在的。
这是我的webpack.config.js
文件内容:
module.exports = {
entry: "game.js",
output: {
path: __dirname + "build",
filename: "index.js"
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.jsx?$/, loader: "babel?presets[]=es2015", exclude: /(node_modules|bower_components)/}
]
}
};
我不确定如何进一步调查这个问题。
resolve.root
时,它可以与我的入口点一起正常工作。 - bigblind