Hello,
I’m trying to move to version 24. Can’t solve the last problem, all the time keep getting an error:
java.lang.IllegalStateException: Asset ‘/line-awesome/dist/line-awesome/css/line-awesome.min.css’ is not found in project frontend directory, default development bundle or in the application bundle ‘src/main/dev-bundle/assets/’.
Verify that the asset is available in ‘frontend/themes/fun-management/’ directory and is added into the ‘assets’ block of the ‘theme.json’ file.
Else verify that the dependency ‘com.vaadin:vaadin-dev-bundle’ is added to your project.
line-awesome.min.css is present in generated folder, com.vaadin:vaadin-dev-bundle is present in external libraries.
In additional, I compared generated blank projects(23 vs 24). There are a difference here
(v23):
nav.addItem(new AppNavItem(“Hello World”, HelloWorldView.class, “la la-globe”));
(v24):
nav.addItem(new AppNavItem(“Hello World”, HelloWorldView.class, LineAwesomeIcon.GLOBE_SOLID.create()));
also in v24 new dependency is added:
<groupId>org.parttio</groupId> <artifactId>line-awesome</artifactId> <version>1.1.0</version>
The old way no longer works and needs to be rewritten? Or is there a way to make it work?