question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error if using along with seo tools plugin

See original GitHub issue

Hello, first of all, this is a great tool that you have here, It can be very useful for using Sanity with Typescript!

I understand that right now there is no support for additional types, which is not the problem I’m facing.

When I use the SEO plugin I need to include a “seo-tools” type in the document, like this:

{
      name: "seo",
      title: "SEO",
      type: "seo-tools",
      options: {...},
}

It seems that the generator doesn’t like that naming and throws

Error: Name "seo-tools" is not valid. Ensure camel case, alphanumeric and underscore characters only

I’m not very familiar if snake case is a valid type name, but since SEO tools are using it, I’m guessing it is. Would you consider adding this to the validation rules?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nirjan-devcommented, Jan 19, 2021

@ricokahler Thank you for all your hard work and quick response ❤️ It’s working for me now.

I did get this log, but I don’t think It’s gonna be a problem for our project right now

Could not find types for: "SeoTools", "Table". Ensure they are present in your schema. Future versions of sanity-codegen will allow you to type them separately.
[SanityCodeGen]: types written out to /home/nirjan/work/digital-media/manifold/packages/manifold-services/schema.ts)
0reactions
ricokahlercommented, Jan 19, 2021

@NK-WebDev let me know how v0.8.3 works for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with Yoast-SEO plugin - WordPress.org
Hello. I am uploading a WordPress project to a server running PHP 8.1. The project has the Yoast-SEO plugin configured, which causes the...
Read more >
14 Best WordPress SEO Plugins and Tools That You Should ...
Are you looking for best WordPress SEO plugin and tools to boost your SEO? Check out our list of 14 best WordPress SEO...
Read more >
Solving Redirection Issues Using Rank Math SEO Plugin
This error usually occurs when you've made any changes to your website's domain recently. You can refer to this guide to fix redirections...
Read more >
How to check for plugin conflicts - Yoast
1. When you're logged in, you will be in your 'Dashboard'. 2. Make sure you are up to date with the latest versions...
Read more >
The Best WordPress SEO Plugins (and Must-Have SEO Tools ...
However, even if you decide not to use SEO plugins, there are still ... You receive progress monitoring weekly, along with a solid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found