Next.js Discord

Discord Forum

I'm stuck I need help.

Unanswered
thatguy posted this in #help-forum
Open in Discord
This is the error I'm encountering;

./sanity/lib/live.ts:6:3
Type error: Type 'import("C:/Users/Darko Gyasi Junior/Desktop/LEADERSON/Projects/myBuilds/beatsadmin/node_modules/@sanity/client/dist/index").SanityClient' is not assignable to type 'import("C:/Users/Darko Gyasi Junior/Desktop/LEADERSON/Projects/myBuilds/beatsadmin/node_modules/@sanity/client/dist/index").SanityClient'. Two different
types with this name exist, but they are unrelated.
Property '#private' in type 'SanityClient' refers to a different member that cannot be accessed from within type 'SanityClient'.

4 |
5 | export const { sanityFetch, SanityLive } = defineLive({
6 | client: (client as unknown as SanityClient).withConfig({
| ^
7 | apiVersion: '2025-05-28'
8 | })
9 | });
Next.js build worker exited with code: 1 and signal: null

Apparently I have multiple instances of @sanity/client installed.
How do I get rid of one?

0 Replies