I have just tried to update my app from Vaadin 17.0.9 to 18.0.1 and it fails to build the frontend.
The error I get is:
ERROR in ./styles/styles.css
Module build failed (from ../node_modules/.pnpm/registry.npmjs.org/css-loader/4.2.1_webpack@4.42.0/node_modules/css-loader/dist/cjs.js):
Error: Can't resolve 'fonts/Roboto-Regular.ttf' in '/home/dev/Development/myapp/frontend/styles'
It seems that it can no longer find the font files which are referenced by the css.
Styles.css (/home/dev/Development/myapp/frontend/styles/styles.css) has:
@font-face
{
font-family: 'Roboto';
src: url('fonts/Roboto-Regular.ttf');
}
Font files are in:
/home/dev/Development/myapp/src/main/resources/META-INF/resources/fonts
Is this something I need to change or a bug in Vaadin?
Using Spring Boot 2.4, openjdk version 14.0.2.