I'm working with Java 8 and Vaadin 22. When I want to deploy my starter app to production by
mvnw clean package -Pproduction
I find several problems while it is building the frontend. It is continuously saying "Cannot find module 'name of module'". I try to install it with npm, but after doing so, there is a new module that is not found. I´ve also tried with mvnw -Pproduction
, but the problem persists. I'm doing exactly the same things as other people who have no issues, so I don't know what I'm doing wrong.
Here are some photos of the problems: cannot find call-bind module and cannot find css-select module
As Simon Martinelli said, running vaadin:dance
in the command prompt and moving the folder out of the One Drive scope before mvnw clean package -Pproduction
command was the solution to my problem