Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Output filename not configured Error in Webpack

Tags:

I had installed it globally by running npm install webpack -g and I had included it in my project by running npm install webpack --save-dev.

However, on running the webpack command, I was seeing the following output: Output filename not configured.

This is the webpack config:

output: {     filename: 'bundle.js',     library: 'require',     libraryTarget: 'this' }, 

This is the only clue i could get from the web :: http://anujnair.com/blog/12-output-filename-not-configured-error-from-webpack But it did not solve the issue

Any Help will be great

like image 466
anandharshan Avatar asked Dec 08 '15 13:12

anandharshan


1 Answers

I was getting the same error and it turned out to be my webpack config file name.

I had it as "webpack.config" instead of "webpack.config.js"

The "Output filename not configured" error seems to come up generally when there is a typo somewhere, and I've found the file name to be a sneaky place you forget to check.

like image 99
spiffysparrow Avatar answered Sep 28 '22 08:09

spiffysparrow