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.
This commit is contained in:
rajashidattapy 2026-08-20 00:08:12 +05:30
parent 18a2dfbe39
commit 56ef8ae3d1
3 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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