vueuse/schema-org

FAQ schema: Google Search Console error: missing field mainEntity

koronowicz opened this issue · 4 comments

I've got this critical error from Google Search Console:

Missing fields „mainEntity”

This is my schema:

<SchemaOrgOrganization name="Name" logo="/logo.png" />
<SchemaOrgWebSite name="Name" />
<SchemaOrgWebPage />
<SchemaOrgWebPage type="FAQPage" />
<SchemaOrgQuestion :name="q.question" :accepted-answer="q.answer" />

Ok, solved, you cannot use double tags.

<SchemaOrgWebPage />
<SchemaOrgWebPage type="FAQPage" />

@koronowicz I"m facing the same issue. What do you mean by "double tags" ?

@chemeng In my layout I used

<SchemaOrgWebPage />

and in a component when I used Question I also added:

<SchemaOrgWebPage type="FAQPage" />

that result in no reference in Question via mainEntity to WebPage.

Did that help?

I see, so you had a "duplicate" tag.. Doesn't look like this is the case for us.. Thank you though!