I am following the documentation here for using a Third Party Vaadin Component and when I get to the last step:
‘… open the themes/halo/halo-ext.scss file located in the web module and add the following code:’
I add the code as instructed by the documentation and start the server but I get the following error:
:app-web:buildScssThemes[CubaWebScssThemeCreation] Import '../halo/halo' in '/home/charlotte/studio-projects/addon-demo/modules/web/build/themes-tmp/VAADIN/themes/halo/com.company.addondemo/halo-ext.scss' could not be found
[CubaWebScssThemeCreation] Mixin Definition: com_company_addondemo-halo-ext not found
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-web:buildScssThemes'.
One thing I have realised is the location of the halo-ext.scss file is not where the documentation points out, but in ‘themes/halo/com.company.addondemo’ not sure if that is linked to the cause…
Apologies if I have missed something obvious, I am very new to this!
The documentation you pointed is compliant with Platform 6.4. I suppose that the demo project you created is based on a newer version of CUBA platform. Take a look at the documentation for the 6.10 version, I believe it should work for you.
Thanks for your fast response! I have just started a new project from scratch following the correct documentation version but I am still encountering an error once it comes to the ‘Start the application server’ line at the end…
:app-web:buildScssThemes[CubaWebScssThemeCreation] Mixin Definition: com_company_addondemo-halo-ext not found
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-web:buildScssThemes'.
> Unable to build theme /home/charlotte/studio-projects/addondemo/modules/web/build/themes-tmp/VAADIN/themes/halo/styles.scss
Without a demo project I can only suggest that you’ve copied the full snippet from the documentation without changing mixin name from com_company_application-halo-ext (the name is related to the root package of that demo app) to com_company_addondemo-halo-ext (As far as I understand the root package of your application is com.company.addondemo)