error:’output.filename’ is required, either in config file or as –output-filename”

Do you want to request a feature or report a bug?
What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.
1.config webpack like this:
image webpack got an error like above
What is the expected behavior?
no error thrown
If this is a feature request, what is motivation or use case for changing the behavior?

Author: Fantashit

4 thoughts on “error:’output.filename’ is required, either in config file or as –output-filename”

  1. I don’t know why, but it suddenly just appeared to be working. It’s a kind of magic I suppose. Or, maybe the reason is that I forgot to save something and then did it unconsciously. A big loss in solving the problem..

  2. I had by mistake pasted two module.exports object in the webpack.config.js, which was giving me this error.

    Removing extra module.exports object fixed the issue

  3. I find the same error and I resolved it but still confuse why its work

    module.exports.config = {

    gives error

    var config = {

    module.exports = config;


Comments are closed.