Output filename not configured.
Webpack throws this error when there is a typo somewhere, or it could not find the config file. Check the following things to resolve the issue :
webpack.config.js
named correctly without any typo (sometimes people forget to add.js
extension)webpack.config.js
is in the root directory of the projectwebpack.config.js
has no typos- Export the JSON object from
webpack.config.js
- In terminal navigate to the directory where
webpack.config.js
then run thewebpack
command.