In preparation for Vaadin 14, I have a production branch meant for updating my 13.0.6 project to the alpha versions of 14. Up until alpha2, things seemed okay for the most part - minus a few visual issues - but it looks like alpha3 has caused a lot of problems.
Images attached for reference - it appears that the components themselves are just not wanting to load. Checking the source, the components are there, but they are just not showing up at all.
I’ve tried this with both Firefox 66.0.4 and Chrome 74.0.3729.131
Hi Tori, could you please give us more details about your project’s folders structure. A small project to reproduce this would be great if you could send us.
Mikael - I thought it was working, but it turned out I was still on alpha2 If I add your snippet to the pom, I still get issues like shown before
Bogdan, to replicate the issue, I downloaded the project base starter (https://vaadin.com/start/latest/java-ui) and then updated the Vaadin version to 14.0.0.alpha3
You have the bowerMode flag inside the productionMode profile.
It should be in the build above the profile.
The project runs in npm mode out of the zip and works fine after moving the bowerMode flag right after the jetty plugin
I guess you are also running it in eclipse due to the Plugin execution not covered by lifecycle configuration as that’s m2e exception.
If you are running the project as a deployed war then you should set the vaadin.bowerMode=true flag to
wildfly system property as the plugin only sets the flag when running from maven so mvn jetty:run
Yes, that seems to have fixed it - going into Configuration > System Properties and adding that flag works. Thank you for the help!
May I ask a follow-up question? I’ve noticed that after the upgrade, some of the formatting on Grids and other components look off and then they’ll fix themselves after refreshing the page. Is this just a related issue to the npm compatible components you mentioned earlier in the thread? I’m attaching a few examples for reference.
This sounds like a caching problem where the initial load doesn’t update the previously cached themes and
there is a missmatch somewhere.
Does this faulty formatting happen on each server restart or is it only for the first migration startup?
If it happens on each startup could you try having disable cache on in the inspectors Network tab and have inspector open when loading the page. Then all files should be gotten as is from the server.