[14:58:27] ERROR (payload): There were 4 errors validating your Payload config
[14:58:27] ERROR (payload): 1: Collection "components" > Field "blocks" > "value" does not match any of the allowed types
[14:58:27] ERROR (payload): 2: Collection "pages" > Field "blocks" > "value" does not match any of the allowed types
[14:58:27] ERROR (payload): 3: Global "user-context-content" > Field "policySearchContent" > "value" does not match any of the allowed types
[14:58:27] ERROR (payload): 4: Global "user-context-content" > Field "originalPolicyProviderContent" > "value" does not match any of the allowed types
For example here's the relevant code:
payload.config.ts
export default buildConfig({
admin: {
bundler: webpackBundler(),
user: Users.slug,
meta: {
titleSuffix: `- ${siteTitle}`,
},
},
editor: slateEditor({}),
// getMongoOptions ?
db: mongooseAdapter({
url: process.env.MONGO_URI ? process.env.MONGO_URI : false,
}),
// lexical editor?
collections: [Component, FormidableForm, Media, OriginalPolicyProvider, Page, Topic, TopicType, Users],
...
globals: [
FooterMenu,
HomePage,
OriginalPolicyProviderOptions,
PolicySearchMappings,
PublicAccess,
SubMenu,
UserContextContent,
],
...
});