Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problem on FreeBSD #6486

Open
bjlemke opened this issue Jun 10, 2024 · 1 comment
Open

Build problem on FreeBSD #6486

bjlemke opened this issue Jun 10, 2024 · 1 comment
Labels

Comments

@bjlemke
Copy link

bjlemke commented Jun 10, 2024

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 bjlemke added the bug label Jun 10, 2024
@Artur-
Copy link
Member

Artur- commented Jun 10, 2024

This is a related Rollup issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants