-
Notifications
You must be signed in to change notification settings - Fork 30k
Closed
Labels
Description
Link to the code that reproduces this issue
https://github.com/lnuvy/opengraph-error
To Reproduce
- Cloning the above github project
- Go to /post/[postId] page
- You will see the
r.map is not a functionerror
Current vs. Expected behavior
Common emails in type OpenGraphMetadata are colliding when type is an "article"
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020
Binaries:
Node: 18.18.0
npm: 9.8.1
Yarn: 1.22.19
pnpm: 8.15.4
Relevant Packages:
next: 14.0.4
eslint-config-next: 14.0.4
react: 18.2.0
react-dom: 18.2.0
typescript: 5.4.2
Next.js Config:
output: N/AWhich area(s) are affected? (Select all that apply)
App Router, Metadata (metadata, generateMetadata, next/head)
Which stage(s) are affected? (Select all that apply)
next dev (local), Other (Deployed)
Additional context
According to the type of built-in openGraph in next.js, when the openGraph type is "article", it doesn't matter if you put an email property.
However, r.map is not a function Error occurs due to emails properties when type is not a "website" type.
I found that the same problem occurred in the AWS deployment environment of the other project, as well as in the local area, and the page was not drawn.
I've built a similar environment on the link above. Thank you!