Build failure with 18.0.1 - resources not found

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/
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-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf');

Font files are in:


Is this something I need to change or a bug in Vaadin?

Using Spring Boot 2.4, openjdk version 14.0.2.

It seems to be this bug:

We’re working on it.