Any idea why I get this error: Collection "posts" > Field "content" > "value" does not match any of the allowed types
When adding this block to a block field in a collection:
import { Block } from "payload/types";
const CodeBlock: Block = {
slug: "Code",
fields: [
{
name: "content",
type: "code",
required: true,
admin: { editorOptions: { minimap: false } },
},
],
};
export default CodeBlock;