joaogarin / angular-electron

Angular2 and Electron starter using webpack
149 stars 53 forks source link

#error "npm run webpack-test" #91

Open ghost opened 7 years ago

ghost commented 7 years ago

When i run "npm run webpack-test" it return

Error: 'output.filename' is required, either in config file or as --output-filename
    at processOptions (/home/hoangnguyenl/ResearchIT/Electron/angular-electron/node_modules/webpack/bin/convert-argv.js:492:11)
    at processConfiguredOptions (/home/hoangnguyenl/ResearchIT/Electron/angular-electron/node_modules/webpack/bin/convert-argv.js:141:4)
    at module.exports (/home/hoangnguyenl/ResearchIT/Electron/angular-electron/node_modules/webpack/bin/convert-argv.js:117:10)
    at Object.<anonymous> (/home/hoangnguyenl/ResearchIT/Electron/angular-electron/node_modules/webpack/bin/webpack.js:153:40)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular2-electron@0.0.0 webpack-test: `webpack --config webpack.test.js --progress --profile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-electron@0.0.0 webpack-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hoangnguyenl/.npm/_logs/2017-09-08T02_14_38_890Z-debug.log

What should I do to configure webpack.test.js file correctly?