From 9a9561f630cd1e1aed67d4f7a54be170316f671f Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Fri, 15 May 2026 11:15:45 -0300 Subject: [PATCH] fix(build): add next-themes + sql.js deps and mark sql.js as webpack external - next-themes: required by TierFlowDiagram.tsx (onboarding) - sql.js: required by CLI runtime sqliteRuntime.mjs - Add sql.js to serverExternalPackages in next.config.mjs to prevent webpack static resolution failures during build --- next.config.mjs | 1 + package-lock.json | 18 ++++++++++++++++++ package.json | 2 ++ 3 files changed, 21 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 34e209a73e..a5394c9edf 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -111,6 +111,7 @@ const nextConfig = { "thread-stream", "pino-abstract-transport", "better-sqlite3", + "sql.js", "keytar", "wreq-js", "zod", diff --git a/package-lock.json b/package-lock.json index a6cf18ee4c..c4545fbca3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "monaco-editor": "^0.55.1", "next": "^16.2.6", "next-intl": "^4.12.0", + "next-themes": "^0.4.6", "node-machine-id": "^1.1.12", "open": "^11.0.0", "ora": "^9.4.0", @@ -60,6 +61,7 @@ "react-reconciler": "^0.31.0", "recharts": "^3.8.1", "selfsigned": "^5.5.0", + "sql.js": "^1.14.1", "tsx": "^4.21.1", "undici": "^8.2.0", "update-notifier": "^7.3.1", @@ -13218,6 +13220,16 @@ "integrity": "sha512-jUxVEu1Nryjt4YgaDktSys7ioOgQfcNPF/SF2dbPNxbVb6U+P1INRgHeCVN+EC59H2rnTFIQwbddmOCrUWFr3g==", "license": "MIT" }, + "node_modules/next-themes": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz", + "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" + } + }, "node_modules/next/node_modules/@swc/helpers": { "version": "0.5.15", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", @@ -15509,6 +15521,12 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "license": "BSD-3-Clause" }, + "node_modules/sql.js": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.14.1.tgz", + "integrity": "sha512-gcj8zBWU5cFsi9WUP+4bFNXAyF1iRpA3LLyS/DP5xlrNzGmPIizUeBggKa8DbDwdqaKwUcTEnChtd2grWo/x/A==", + "license": "MIT" + }, "node_modules/stable-hash": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", diff --git a/package.json b/package.json index 341dac3847..8979f11895 100644 --- a/package.json +++ b/package.json @@ -163,6 +163,7 @@ "monaco-editor": "^0.55.1", "next": "^16.2.6", "next-intl": "^4.12.0", + "next-themes": "^0.4.6", "node-machine-id": "^1.1.12", "open": "^11.0.0", "ora": "^9.4.0", @@ -176,6 +177,7 @@ "react-reconciler": "^0.31.0", "recharts": "^3.8.1", "selfsigned": "^5.5.0", + "sql.js": "^1.14.1", "tsx": "^4.21.1", "undici": "^8.2.0", "update-notifier": "^7.3.1",