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 came across this error when there is a spelling mistake the config details.
output: { path: "app/dist/assets", filname: "bundle.js", publicPath: "assets" },
mispelled "filename". on correcting the spelling, this issue is resolved