Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/og does not work with components which are using forwardRef #61202

Open
sdorra opened this issue Jan 26, 2024 · 0 comments
Open

next/og does not work with components which are using forwardRef #61202

sdorra opened this issue Jan 26, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template.

Comments

@sdorra
Copy link

sdorra commented Jan 26, 2024

Link to the code that reproduces this issue

https://github.com/sdorra/og-with-forwardRef

To Reproduce

  1. Start the application (pnpm run dev)
  2. Open the start page (http://localhost:3000)

Current vs. Expected behavior

Current

The sample og image shows only World 👋 and does not show 👋 Hello which is rendered by a component which is using React.forwardRef.

Expected

The og image should render components which are using React.forwardRef and shows 👋 Hello World 👋.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
Binaries:
  Node: 21.6.1
  npm: 10.2.4
  Yarn: 1.22.21
  pnpm: 8.14.1
Relevant Packages:
  next: 14.1.1-canary.13 // Latest available version is detected (14.1.1-canary.13).
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

Additional context

The problem arose during the update from react fontawesome 0.1 to 0.2.

@sdorra sdorra added the bug Issue was opened via the bug report template. label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant