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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With