vaadin / platform

Vaadin platform 10+ is a Java web development platform based on Vaadin web components. If you don't know to which repository your bug report should be filed, use this and we'll move it to the right one.
https://vaadin.com
545 stars 78 forks source link

Build problem on FreeBSD #6486

Open bjlemke opened 3 months ago

bjlemke commented 3 months ago

Describe the bug

On FreeBSD platform, we have a build problem on FreeBSD ( since Vaadin 23.3.10 and up ) Our node/npm configuration is

[lemke@devrep /git/acc]$ node --version v20.14.0 [lemke@devrep /git/acc]$ npm -version 10.8.1

From Vite, we get the following build error :

[INFO] Running Vite ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.675 s [INFO] Finished at: 2024-06-10T07:43:19+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:24.4.0.rc1:build-frontend (default) on project Acc: Execution default of goal com.vaadin:vaadin-maven-plugin:24.4.0.rc1:build-frontend failed: Vite process exited with non-zero exit code. [ERROR] Stderr: '/git/acc/node_modules/vite/node_modules/rollup/dist/native.js:84 [ERROR] throw new Error( [ERROR] ^ [ERROR] [ERROR] Error: Your current platform "freebsd" and architecture "x64" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead. ...

After a deeper analysis, it seems, the the CSS Import annotations causes this problem

@CssImport(value = "./styles/login.css", themeFor = "vaadin-login-overlay-wrapper") @CssImport(value = "./styles/grid-style.css", themeFor = "vaadin-grid")

If commenting this annotations, the build runs successful !

Expected-behavior

Successful Build

Reproduction

Just put CSS annotations in code and make a maven build run on a FreeBSD platform

System Info

FreeBSD 14.1, Vaadin 23.3.10 and up

Artur- commented 3 months ago

This is a related Rollup issue