FAQ schema: Google Search Console error: missing field mainEntity
koronowicz opened this issue · 4 comments
koronowicz commented
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" />
koronowicz commented
Ok, solved, you cannot use double tags.
<SchemaOrgWebPage />
<SchemaOrgWebPage type="FAQPage" />
chemeng commented
@koronowicz I"m facing the same issue. What do you mean by "double tags" ?
koronowicz commented
@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?
chemeng commented
I see, so you had a "duplicate" tag.. Doesn't look like this is the case for us.. Thank you though!