Hello guys!
I’m working on a multi-module project, within this structure.
my-project
– api
– webapp
I have added the vaadin dependency on my webapp pom.xml, but when I’m running the project the vaadin creates a target folder within the root folder (my-project), I’m wondering if there is any way to configure the vaadin-maven-plugin to create the node-module and package.json file into the webapp folder, or even better for me, to avoid the node.js dependency. It this possible?
Thanks for sharing the files. I’m not sure if that’s a bug or not. I made it work as expected by removing all node_modules, target, package.json, package-lock.json, webpack.config.js, and webpack.generated.js directories and files. Then I cd webapp and mvn vaadin:prepare-frontend. Might be worth it opening an issue.
Alejandro Duarte:
Thanks for sharing the files. I’m not sure if that’s a bug or not. I made it work as expected by removing all node_modules, target, package.json, package-lock.json, webpack.config.js, and webpack.generated.js directories and files. Then I cd webapp and mvn vaadin:prepare-frontend. Might be worth it opening an issue.
Thanks Alejandro,
Now I have the problem that when I run the app, all the time it is showing a message that the client lost the connection with the server.
I think in a newer version it was fixed somehow. Not entirely sure why that is but look at my project here, the vaadin files are inside the “ui” module. https://github.com/Sam-Kruglov/bank