Skip to content
New issue

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

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

Already on GitHub? # to your account

UI: Error building backend in dev environment #862

Open
r-yabyab opened this issue Feb 18, 2025 · 0 comments
Open

UI: Error building backend in dev environment #862

r-yabyab opened this issue Feb 18, 2025 · 0 comments
Labels
area/security area/ui UI related entities

Comments

@r-yabyab
Copy link

r-yabyab commented Feb 18, 2025

Better-sqlite3 dependency not building with yarn install, which causes the backend to not start up with yarn dev . Used Ubuntu 24.04.1 with node-gyp installed.

yarn install :

[5/5] Building fresh packages...
[11/12] ⠠ better-sqlite3
[-/12] ⠠ waiting...
[-/12] ⠠ waiting...
[-/12] ⠠ waiting...
error /home/user/kpt-backstage-plugins/node_modules/better-sqlite3: Command failed.
Exit code: 1
Command: prebuild-install || npm run build-release
Arguments:
Directory: /home/user/kpt-backstage-plugins/node_modules/better-sqlite3
Output:
prebuild-install warn install No prebuilt binaries found (target=22.14.0 runtime=node arch=x64 libc= platform=linux)

> better-sqlite3@7.6.2 build-release
> node-gyp rebuild --release

Updating better-sqlite3 to 11.8.0 fixed the issue and passes tests. I will send a PR soon.

@efiacor efiacor added area/ui UI related entities area/security labels Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/security area/ui UI related entities
Projects
None yet
Development

No branches or pull requests

2 participants