vaadin / vaadin-gradle-plugin

Gradle plugin for Vaadin 14 applications. Takes care of front-end build, helps to configure repositories and to create various project and file templates.
Apache License 2.0
31 stars 9 forks source link

Insufficient number of arguments or no entry found. #118

Closed mvysny closed 3 years ago

mvysny commented 3 years ago

Desktop (please complete the following information):

Describe the bug The vaadinBuildFrontend fails with

Command 'C:\Program Files\nodejs\node.exe C:\Users\<user>\Desktop\base-starter-gradle-14\node_modules\webpack\bin\webpack.js' failed with exit code 2:
[1m[31mInsufficient number of arguments or no entry found.
[1m[31mAlternatively, run 'webpack(-cli) --help' for usage info.[39m[22m
Hash: 1ae7641a85abb29e6a14
Version: webpack 4.42.0
Time: 42ms
Built at: 03.08.2021 08:28:31
ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in 'C:\Users\<user>\Desktop\base-starter-gradle-14\frontend'
ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in 'C:\Users\<user>\Desktop\base-starter-gradle-14\frontend'
mvysny commented 3 years ago

On Linux, the error message was a bit different "wrong number of arguments".

The problem was that Vaadin 14.6.7 was used with old Gradle plugin 0.14.3.7. After upgrading to Gradle plugin 0.14.6.0 the problem resolved itself.