Hey I’m currently running into a weird issue when building my project.
In my current project we recently upgraded to Vaadin 24.1.2 so after upgrading I went through the usual motions → mvn vaadin:clean-frontend to remove node_modules, ...
I also removed package.json and ran a quick mvn clean install -P production, this normally regenerates all the usual “generated” vaadin/npm files. But this time I notice all the files/folders get created but also deleted somewhere during the vaadin-build-frontend step.
I noticed this commit in the flow-maven-plugin: https://github.com/vaadin/flow/pull/17080 and https://github.com/vaadin/flow/pull/16790
Since it says this in the code:
* The targeted frontend files are files that do not exist when
* build-frontend target is executed.
Might this be the cause? Is this intentional? How can I regenerate my package.json file?
But is this the new intended flow? We currently check in the package.json and package-lock.json file on our VCS to ensure builds are consistent across dev machines and CI/CD builds