Hello, Johannes and dear colleagues. My project worked on Vaadin v14.0.10 in compatibilityMode and with ApexCharts v0.9.0.
Recently, I turned off the compatibilityMode, changed Vaadin to version 14.1.1, rebuilt the project (moved .css and .js to folder ‘frontend’), and changed the ApexCharts to version 2.0.0.b7.
As a result, in the IDEA my project starts up and works perfectly. However, if I build the war-package (or jar-package) in the gradle and run it, then at the time of launch the program produces an error:
ERROR 2238 --- [ main]
o.a.c.c.C.[Tomcat]
.[localhost]
.
[/] : Exception sending context initialized event to listener instance of class [com.vaadin.flow.spring.VaadinServletContextInitializer$DevModeServletContextListener]
java.lang.IllegalStateException:
.... Failed to find the following css files in the `node_modules` or `/home/cab/Project/browser/build/bootScripts/./frontend` directory tree:
- ./com/github/appreciated/apexcharts/apexcharts-wrapper-styles.css
Check that they exist or are installed. If you use a custom directory for your resource files instead of the default `frontend` folder then make sure it's correctly configured (e.g. set 'vaadin.frontend.frontend.folder' property)
at com.vaadin.flow.server.frontend.AbstractUpdateImports.getCssLines(AbstractUpdateImports.java:213) ~[flow-server-2.1.0.jar!/:2.1.0]
What do you think might be causing this error?