eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.26k stars 870 forks source link

webpack build fails during a copy operation #865

Closed raul1991 closed 4 years ago

raul1991 commented 4 years ago

Do you want to request a feature or report a bug? Bug What is the current behavior? It fails with the following error

[INFO] An unhandled exception occurred: CopyPlugin Invalid Options
[INFO] 
[INFO] options should NOT have fewer than 1 items
[INFO] 
[INFO] See "/tmp/ng-VIGa3f/angular-errors.log" for further details.
[INFO] npm ERR! file sh
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! errno ENOENT
[INFO] npm ERR! syscall spawn
[INFO] npm ERR! coba@1.0.0-SNAPSHOT build:production: `node ./node_modules/@angular/cli/bin/ng run coba:build-webpack`
[INFO] npm ERR! spawn ENOENT
[INFO] npm ERR! 
[INFO] npm ERR! Failed at the coba@1.0.0-SNAPSHOT build:production script.
[INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

If the current behavior is a bug, please provide the steps to reproduce. mvn clean install What is the expected behavior? The webpack build succeeds. Please mention your frontend-maven-plugin and operating system version. Os: Ubuntu18.04 version: 1.18.0

eirslett commented 4 years ago

This is an issue with your Webpack configuration, not with frontend-maven-plugin.