From a113a1daa9ea9e0a817443b665dba5dc6d58accc Mon Sep 17 00:00:00 2001 From: mooncitydev Date: Mon, 18 May 2026 03:47:51 -0700 Subject: [PATCH] fix wrong cluster type and let next builds fail on ts errors programLabel was using web3 Cluster while program metadata uses the app cluster enum, so typescript was fighting itself and the types did not match real usage. token balance fallback image now uses the public path instead of an import typescript could not resolve. dropped ignoreBuildErrors and ignoreDuringBuilds so ci and vercel actually surface problems. --- next.config.mjs | 6 ------ src/components/common/token-balance-delta.tsx | 5 +++-- src/utils/common.ts | 4 +++- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index fd25ef2..d9c5cd9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,12 +9,6 @@ const config = { }, ]; }, - typescript: { - ignoreBuildErrors: true, - }, - eslint: { - ignoreDuringBuilds: true, - }, }; export default config; diff --git a/src/components/common/token-balance-delta.tsx b/src/components/common/token-balance-delta.tsx index c718a2e..c266ac7 100644 --- a/src/components/common/token-balance-delta.tsx +++ b/src/components/common/token-balance-delta.tsx @@ -1,4 +1,3 @@ -import noLogoImg from "@/../public/assets/noLogoImg.svg"; import cloudflareLoader from "@/utils/imageLoader"; import { PublicKey } from "@solana/web3.js"; import { BigNumber } from "bignumber.js"; @@ -7,6 +6,8 @@ import React from "react"; import { useGetTokenListVerified } from "@/hooks/jupiterTokenList"; +const NO_LOGO_SRC = "/assets/noLogoImg.svg"; + export function TokenBalanceDelta({ mint, delta, @@ -37,7 +38,7 @@ export function TokenBalanceDelta({ loading="eager" onError={(event: any) => { event.target.id = "noLogoImg"; - event.target.srcset = noLogoImg.src; + event.target.srcset = NO_LOGO_SRC; }} className="h-6 w-6 rounded-full" /> diff --git a/src/utils/common.ts b/src/utils/common.ts index f4c078b..9e6590f 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -1,4 +1,6 @@ -import { Cluster, PublicKey } from "@solana/web3.js"; +import { PublicKey } from "@solana/web3.js"; + +import type { Cluster } from "./cluster"; import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge";