platform icon indicating copy to clipboard operation
platform copied to clipboard

Build problem on FreeBSD

Open bjlemke opened this issue 1 year ago • 2 comments

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

bjlemke avatar Jun 10 '24 05:06 bjlemke