issue while setting up the project #7933
Shashivarunreddy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
./content/docs/registry/registry-json.mdx
Error evaluating Node.js code
Error: Invalid element at key "links": expected a Zod schema
[at file:///S:/v4/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/schemas.js:683:23]
[at get value (file:///S:/v4/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/util.js:33:31)]
[at inst.zod.parse (file:///S:/v4/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/schemas.js:757:39)]
[at file:///S:/v4/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/parse.js:47:30]
[at Object.validate (file:///S:/v4/node_modules/.pnpm/[email protected]/node_modules/zod/v4/core/schemas.js:93:24)]
[at validate (file:///S:/v4/node_modules/.pnpm/[email protected][email protected][email protected]@types[email protected]_next@15.3.1_@babel+h76gchlkr5fx6j2u5ceydxaipq/node_modules/fumadocs-mdx/dist/chunk-ZOWJF3OH.js:45:46)]
[at Object.loader (file:///S:/v4/node_modules/.pnpm/[email protected][email protected][email protected]@types[email protected]_next@15.3.1_@babel+_h76gchlkr5fx6j2u5ceydxaipq/node_modules/fumadocs-mdx/dist/loader-mdx.js:45:20)]
The above error keeps popping up while i try to set up v4 version locally , for my understanding the issue is with the Zod schema and the MDX fromat , we cant change the format of all the MDX files , i have tried changing the zod tyes in the source.config.ts file
export const docs = defineDocs({
dir: "content/docs",
docs: {
// @ts-expect-error - TODO: fix the type.
schema: frontmatterSchema.extend({
links: z
.object({
doc: z.string().optional(),
api: z.string().optional(),
})
.optional(),
}),
},
})
but i am unable to find the solution
Beta Was this translation helpful? Give feedback.
All reactions