Closed johannesh2 closed 5 years ago
It seems the zip file downloaded does not contain any of the Designer templates
remove your node_modules package.json and webpack.config.js and try to run again.
remove your node_modules package.json and webpack.config.js and try to run again.
The problem is the js templates are not included in the zip file. So even when deleting these it does not resolve the problem
Downloaded zip now includes frontend folder with designer templates that were missing.
Not sure if same issue, I downloaded the latest version and got the following error with mvn clean package and mvn clean install:
OS: Ubuntu
[INFO] Updated npm /home/knoobie/projects/vaadin/test/target/frontend/package.json.
[INFO] Running npm install
...
npm ERR! addLocal Could not install /home/knoobie/projects/vaadin/test/target/frontend
npm ERR! Linux 4.15.0-50-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! No version provided in package.json npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request: npm ERR! /home/knoobie/projects/vaadin/test/npm-debug.log [ERROR] >>> Dependency ERROR. Check that all required dependencies are deployed in npm repositories. [WARNING] Use the './' prefix for resources in JAR files: 'flow-component-renderer.js', please update your component. [WARNING] Do not use the 'frontend://' protocol in '@JsModule', changing 'frontend://gridConnector.js' to './gridConnector.js', please update your component. [WARNING] Do not use the 'frontend://' protocol in '@JsModule', changing 'frontend://contextMenuConnector.js' to './contextMenuConnector.js', please update your component. [WARNING] Do not use the 'frontend://' protocol in '@JsModule', changing 'frontend://datepickerConnector.js' to './datepickerConnector.js', please update your component. [WARNING] Do not use the 'frontend://' protocol in '@JsModule', changing 'frontend://comboBoxConnector.js' to './comboBoxConnector.js', please update your component. [INFO]
Failed to find the following imports in the node_modules
tree:
➜ @vaadin/vaadin-grid/src/vaadin-grid-column.js
➜ @vaadin/vaadin-item/src/vaadin-item.js
➜ @vaadin/vaadin-form-layout/src/vaadin-form-item.js
➜ @vaadin/vaadin-tabs/src/vaadin-tab.js
➜ @vaadin/vaadin-grid/src/vaadin-grid-column-group.js
➜ @vaadin/vaadin-icons/vaadin-icons.js
➜ @vaadin/vaadin-crud/src/vaadin-crud-edit-column.js
➜ @vaadin/vaadin-dialog/src/vaadin-dialog.js
➜ @vaadin/vaadin-button/src/vaadin-button.js
➜ @vaadin/vaadin-confirm-dialog/src/vaadin-confirm-dialog.js
➜ @vaadin/vaadin-app-layout/src/vaadin-app-layout.js
➜ @vaadin/vaadin-checkbox/src/vaadin-checkbox.js
➜ @vaadin/vaadin-date-picker/src/vaadin-date-picker.js
➜ @vaadin/vaadin-charts/vaadin-chart.js
➜ @vaadin/vaadin-text-field/src/vaadin-password-field.js
➜ @vaadin/vaadin-combo-box/src/vaadin-combo-box.js
➜ @vaadin/vaadin-context-menu/src/vaadin-context-menu.js
➜ @vaadin/vaadin-tabs/src/vaadin-tabs.js
➜ @vaadin/vaadin-text-field/src/vaadin-text-field.js
➜ @vaadin/vaadin-list-box/src/vaadin-list-box.js
➜ @vaadin/vaadin-notification/src/vaadin-notification.js
➜ @vaadin/vaadin-grid/src/vaadin-grid-sorter.js
➜ @vaadin/vaadin-crud/src/vaadin-crud.js
➜ @vaadin/vaadin-grid/src/vaadin-grid.js
➜ @vaadin/vaadin-login/src/vaadin-login-overlay.js
➜ @vaadin/vaadin-form-layout/src/vaadin-form-layout.js
➜ @vaadin/vaadin-text-field/src/vaadin-email-field.js
If the build fails, check that npm packages are installed.
[INFO] Updated /home/knoobie/projects/vaadin/test/target/frontend/generated-flow-imports.js [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.097 s [INFO] Finished at: 2019-06-04T15:45:14+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:14.0.0.beta2:build-frontend (default) on project my-starter-project: Execution default of goal com.vaadin:vaadin-maven-plugin:14.0.0.beta2:build-frontend failed: Unable to locate webpack executable by path '/home/knoobie/projects/vaadin/test/node_modules/webpack/bin/webpack.js'. Double check that the plugin is executed correctly -> [Help 1] [ERROR]
npm ERR! node v8.10.0 npm ERR! npm v3.5.2
NPM version looks outdated, if npm install
fails then the rest of the build will fail.
If you have a global npm installation, can you try updating npm version? If that doesn't work please create a separate ticket.
Node.js version requirement is already mentioned in platform release notes but npm is not mentioned, I'll create a separate ticket for that
Thanks for the heads up about the "old version" - sadly those are the latest versions provided by Ubuntu 18 LTS. If another customer comes around the same issue - here is a instruction how to update the versions within Ubuntu: https://github.com/nodesource/distributions
Now it's working fine!
Mvn install fails when running
mvn install