-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown type: seo-tools. #63
Comments
Since V3 the installation has changed. This is reflected in the README |
I did follow the README instructions, and I'm still getting the error when I visit Sanity admin.
|
I also got this error, because I first followed the old guide, and I therefore had added something like this to one of my documents:
By removing this, the |
The documentation on the plugin page still shows the old instructions (which leads to above error): To resolve: {
// ...
"parts": [
// ...
{
"name": "part:@sanity/desk-tool/structure",
"path": "./deskStructure.js"
}
]
} Then create a file called import React from 'react'
import S from '@sanity/desk-tool/structure-builder'
import { SeoToolsPane } from 'sanity-plugin-seo-tools'
export const getDefaultDocumentNode = () => {
return S.document().views([
S.view.form(),
S.view.component(SeoToolsPane).options({
fetch: true,
resolveProductionUrl: (doc) => (
new URL(`https://sanity.io/${doc?.slug?.current}`)
),
select: (doc) => ({
focus_keyword: doc.focus_keyword ?? '',
seo_title: doc.seo_title ?? '',
meta_description: doc.meta_description ?? '',
focus_synonyms: doc.focus_synonyms ?? [],
}),
}).title('SEO')
])
}
export default S.defaults() |
Not sure what the issue is but I've followed installation instructions and I keep getting this error.
Do I need to manually register
seo-tools
schema type?The text was updated successfully, but these errors were encountered: