value requires ParsedContent but displays an error in the editor #2133
Unanswered
MoLing-Dong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
value requires ParsedContent but displays an error in the editor
不能将类型“ParsedContent | null”分配给类型“Record<string, any> | undefined”。
不能将类型“null”分配给类型“Record<string, any> | undefined”。ts(2322)
ContentRenderer.vue.d.ts(52, 5): 所需类型来自属性 "value",在此处的 "{ value?: Record<string, any> | undefined; excerpt?: boolean | undefined; tag?: string | undefined; key?: string | number | symbol | undefined; style?: unknown; class?: unknown; ref?: VNodeRef | undefined; ... 7 more ...; onVnodeUnmounted?: VNodeMountHook | ... 1 more ... | undefined; } & Record<...>" 类型上声明该属性
https://content.nuxtjs.org/api/components/content-renderer
Beta Was this translation helpful? Give feedback.
All reactions