-
const docs = defineCollection({
name: 'docs',
directory: 'content/docs',
include: ["**/*.md", "**/*.mdx"],
schema: createDocSchema,
transform: transformMDX,
});
const docMetas = defineCollection({
name: 'docsmeta',
directory: 'content/docs',
include: '**/meta.json',
parser: 'json',
schema: createMetaSchema,
});
export default defineConfig({
collections: [docs, docMetas],
}); not sure why if i add |
Beta Was this translation helpful? Give feedback.
Answered by
jcyuan
Jan 15, 2025
Replies: 2 comments 1 reply
-
Cannot reproduce it, make sure to upgrade dependencies to latest with |
Beta Was this translation helpful? Give feedback.
1 reply
-
problem found: set thanks for help @fuma-nama |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jcyuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
problem found:
set
"strict": true,
in your tsconfig.json although not sure why this causes the error (maybe type infering error). (i actually preferstrict: true
, not sure why it was false 😅)thanks for help @fuma-nama