Tag Archives: “‘output.filename’ is required

[Solved] throw new Error(“‘output.filename’ is required, either in config file or as –output-filename”);

throw new Error(“‘output.filename’ is required, either in config file or as –output-filename”); Why

Reason: module.exports is written as module.export

 

Module build failed: TypeError: loaderContext.getResolve is not a function when configuring the less file

An error will be reported because the version is too high. Manually change the version of less to 3.9.0 and less-loaderl to 5.0.0 in the configuration file, then re-download with npm install, and then npm rub build