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

[Bug] React 19 TypeError for server components #476

Open
1 task done
kai11 opened this issue Jan 1, 2025 · 1 comment
Open
1 task done

[Bug] React 19 TypeError for server components #476

kai11 opened this issue Jan 1, 2025 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kai11
Copy link

kai11 commented Jan 1, 2025

Describe the bug

I added this component to Nextjs 15 / React 19 project (with --force because there is no official support yet)
However, I received error
TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
I was able to fix it by adding "use client" for my Intercom component.
I don't see it mentioned in README or in examples.
Is it react 19 compatibility issue?

How To Reproduce

  1. Create NextJs 15 / React 19 project
  2. Add intercom component
  3. Intercom component will be server side by default and will throw error above.
  4. Add "use client" to Intercom component and error will disappear.

Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct
@kai11 kai11 added the bug Something isn't working label Jan 1, 2025
@kai11 kai11 changed the title [Bug] [Bug] React 19 TypeError for server components Jan 1, 2025
@benschwarz
Copy link
Member

@kai11 Thanks for logging - Could you make a patch to address React 19 support?

@benschwarz benschwarz added the help wanted Extra attention is needed label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

2 participants