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
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.