From 67edb1c5d3724492dfb0346ea259922ea30ec178 Mon Sep 17 00:00:00 2001 From: Mike Yumatov Date: Fri, 19 Jun 2026 11:44:40 +0300 Subject: [PATCH] fix: build better-sqlite3 native addon so backend can start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yarn 4 disables package build scripts by default, so better-sqlite3's native addon was never compiled. Without better_sqlite3.node the backend's SQLite database client fails ("Could not locate the bindings file"), catalog-backend initialization throws, backend.start() never completes, and every /api/catalog/* route 404s — surfacing as an empty catalog in the UI (readiness stays 503 "Backend has not started yet"). Opt better-sqlite3 into building via dependenciesMeta so the addon compiles on install. Co-Authored-By: Claude Opus 4.8 (1M context) --- package.json | 5 +++++ yarn.lock | 3 +++ 2 files changed, 8 insertions(+) diff --git a/package.json b/package.json index a9d71e0..79f804e 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,10 @@ "@jest/environment-jsdom-abstract": "^30.2.0", "concurrently": "^10.0.0", "jsdom": "^29.0.0" + }, + "dependenciesMeta": { + "better-sqlite3": { + "built": true + } } } diff --git a/yarn.lock b/yarn.lock index fab9a06..35b8056 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23096,6 +23096,9 @@ __metadata: "@jest/environment-jsdom-abstract": "npm:^30.2.0" concurrently: "npm:^10.0.0" jsdom: "npm:^29.0.0" + dependenciesMeta: + better-sqlite3: + built: true languageName: unknown linkType: soft