Troubleshooting
My OpenGraph image isn’t showing
Check these:
- Image URL is absolute (not relative)
- Image is accessible (publicly available)
- Image meets size requirements (1200x630px recommended)
- Test with OpenGraph Debugger
// ✅ Good - absolute URL
open_graph_image: 'https://example.com/image.jpg';
// ❌ Bad - relative URL
open_graph_image: '/image.jpg';
TypeScript errors with schema types
Make sure you’re using the correct import:
import type { SchemaOrgProps } from 'svead';
// Use this type
const schema: SchemaOrgProps['schema'] = {
'@type': 'BlogPosting',
// ...
};
Schema validation errors
Common issues:
- Missing required fields: Check Schema.org documentation for required properties
- Wrong date format: Use ISO 8601 format
(
2023-08-22T10:00:00Z
) - Invalid URL: Use full URLs with protocol
(
https://example.com
)
// ✅ Good
datePublished: '2023-08-22T10:00:00Z';
// ❌ Bad
datePublished: '08/22/2023';
Multiple meta tags appearing
If you see duplicate meta tags:
- Check for conflicting SEO components
- Remove any manual
<svelte:head>
meta tags - Use only one
Head
component per page
The @context is missing
The SchemaOrg
component automatically adds @context
if missing.
If you need to add it manually:
const schema = {
'@context': 'https://schema.org',
'@type': 'WebPage',
// ...
};
Images not appearing in structured data
Ensure images are in ImageObject
format when required:
// ✅ Good - ImageObject format
primaryImageOfPage: {
'@type': 'ImageObject',
url: 'https://example.com/image.jpg',
}
// ❌ Bad - string format (sometimes works, but not recommended)
primaryImageOfPage: 'https://example.com/image.jpg'