You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merging of openGraph ResolvedMetadata object into Metadata is throwing an error. Mainly because of images parameter which is not retrieved correctly from parent it seems.
Also url parameter cannot be spread to Metadata and has to be redefined.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Metadata (metadata, generateMetadata, next/head, head.js)
Link to the code that reproduces this issue
https://github.com/bfourgeaud/metadata-merge-repro
To Reproduce
Describe the Bug
Merging of openGraph
ResolvedMetadata
object intoMetadata
is throwing an error. Mainly because of images parameter which is not retrieved correctly from parent it seems.Also url parameter cannot be spread to Metadata and has to be redefined.
Expected Behavior
It should be possible to merge the parent Metadata (ResolvedMetadata) into the current Metadata. Both objects should be of compatible types.
Which browser are you using? (if relevant)
chrome
How are you deploying your application? (if relevant)
VSCode, Vercel
NEXT-1094
The text was updated successfully, but these errors were encountered: