From 56ef8ae3d199eb48281a53b1d941a3fc6681da28 Mon Sep 17 00:00:00 2001 From: rajashidattapy Date: Thu, 20 Aug 2026 00:08:12 +0530 Subject: [PATCH] fix(web): import Chrome extension URL through the mapped @lib alias Three components imported `@repo/lib/constants`, which nothing resolves: apps/web/tsconfig.json maps @repo/ui/*, @ui/*, @lib/* and @hooks/* but not @repo/lib/*, so resolution fell through to the package's own exports map (`"./*": "./*"`) and landed on the extensionless `packages/lib/constants`. Bundlers paper over it; tsc reports TS2307 for all three. Use `@lib/constants`, the alias every other consumer in the repo already uses. --- apps/web/components/integrations/chrome-detail.tsx | 2 +- apps/web/components/nova/nova-empty-state.tsx | 2 +- apps/web/components/onboarding/x-bookmarks-detail-view.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/components/integrations/chrome-detail.tsx b/apps/web/components/integrations/chrome-detail.tsx index 6a63dbf14..268e1d6bd 100644 --- a/apps/web/components/integrations/chrome-detail.tsx +++ b/apps/web/components/integrations/chrome-detail.tsx @@ -1,6 +1,6 @@ "use client" -import { CHROME_EXTENSION_URL } from "@repo/lib/constants" +import { CHROME_EXTENSION_URL } from "@lib/constants" import { cn } from "@lib/utils" import { dmSans125ClassName } from "@/lib/fonts" import { ChromeIcon } from "@/components/integration-icons" diff --git a/apps/web/components/nova/nova-empty-state.tsx b/apps/web/components/nova/nova-empty-state.tsx index 46a79e601..1cf4f2588 100644 --- a/apps/web/components/nova/nova-empty-state.tsx +++ b/apps/web/components/nova/nova-empty-state.tsx @@ -1,6 +1,6 @@ "use client" -import { CHROME_EXTENSION_URL } from "@repo/lib/constants" +import { CHROME_EXTENSION_URL } from "@lib/constants" import type { IntegrationParamValue } from "@/lib/search-params" import { cn } from "@lib/utils" import { dmSansClassName } from "@/lib/fonts" diff --git a/apps/web/components/onboarding/x-bookmarks-detail-view.tsx b/apps/web/components/onboarding/x-bookmarks-detail-view.tsx index d65d35e22..e0bf95abb 100644 --- a/apps/web/components/onboarding/x-bookmarks-detail-view.tsx +++ b/apps/web/components/onboarding/x-bookmarks-detail-view.tsx @@ -4,7 +4,7 @@ import { Button } from "@ui/components/button" import { cn } from "@lib/utils" import { dmSansClassName } from "@/lib/fonts" import Image from "next/image" -import { CHROME_EXTENSION_URL } from "@repo/lib/constants" +import { CHROME_EXTENSION_URL } from "@lib/constants" interface XBookmarksDetailViewProps { onBack: () => void