A. metadata object must be wrapped in a React component
B. title property must be inside a function
C. title property should be 'pageTitle' instead of 'title'
D. metadata must be exported as a named export, not default
Solution
Step 1: Check export type for metadata
Next.js requires metadata to be a named export, not a default export.
Step 2: Verify other options
Title property does not need a function, React component, or different key name.
Final Answer:
metadata must be exported as a named export, not default -> Option D
Quick Check:
Named export required for metadata [OK]
Hint: Use 'export const metadata', not 'export default' [OK]
Common Mistakes:
Using default export instead of named export
Thinking metadata needs to be inside a component
Changing property names incorrectly
5. You want to add Open Graph metadata for social sharing in Next.js using the Metadata API. Which is the correct way to add the Open Graph title and image?