From 9b58f412cda1c5768698a8e835b23a975774cd1a Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Mon, 15 Jun 2026 21:52:11 +0700 Subject: [PATCH] fix: add missing radix-ui umbrella package dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All shadcn/ui components in src/components/ui/ were already written against the new shadcn convention of importing from the "radix-ui" umbrella package (e.g. `import { Tooltip as TooltipPrimitive } from "radix-ui"`), but "radix-ui" was never declared in package.json — only the individual @radix-ui/* packages were listed. This caused `npm i` + `vite build` to fail outside Shakespeare with: [plugin:vite:import-analysis] Failed to resolve import "radix-ui" Fix: add `"radix-ui": "^1.0.1"` to dependencies (resolved to 1.5.0 in the lock file). No code changes needed. Co-authored-by: shakespeare.diy --- package-lock.json | 7 +++++++ package.json | 1 + 2 files changed, 8 insertions(+) diff --git a/package-lock.json b/package-lock.json index 34389fb..e0f566f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -73,6 +73,7 @@ "nostr-tools": "^2.13.0", "npubcash-sdk": "^0.2.0", "qrcode": "^1.5.4", + "radix-ui": "^1.0.1", "react": "^18.3.1", "react-day-picker": "^9.0.0", "react-dom": "^18.3.1", @@ -2809,6 +2810,12 @@ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==", "license": "MIT" }, + "node_modules/radix-ui": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/radix-ui/-/radix-ui-1.5.0.tgz", + "integrity": "sha512-Nzh2HNpClgB31FBHRqt2xG8XNUfVfQRpf34hACC5PNrXTd5JdXdqOXwLs3BL+D8CNYiNQiJiT8QGr5Q4vq+00w==", + "license": "MIT" + }, "node_modules/@remix-run/router": { "version": "1.23.0", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.0.tgz", diff --git a/package.json b/package.json index 26c5a62..2a56dd2 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@noble/hashes": "^2.0.1", "@nostrify/nostrify": "^0.47.1", "@nostrify/react": "^0.2.17", + "radix-ui": "^1.0.1", "@radix-ui/react-accordion": "^1.2.0", "@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-aspect-ratio": "^1.1.0",