Output filename not configured Error in Webpack

前端 未结 17 1824
执笔经年
执笔经年 2021-01-07 18:08

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

17条回答
  •  生来不讨喜
    2021-01-07 18:38

    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.

提交回复
热议问题