When I start webpack, I get this error:
ERROR in Entry module not found: Error: Cannot resolve module 'game' in /Users/frederikcreemers/dev/dark_chess
(A new line has been added for clarity.)
But I'm sure game.js exists.
Here is what my webpack.config.js looks like:
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)/} ] } };
I am not sure how to continue investigating the problem.
source share