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

Error: Super expression must either be null or a function #154

Open
olegdater opened this issue Feb 17, 2024 · 1 comment
Open

Error: Super expression must either be null or a function #154

olegdater opened this issue Feb 17, 2024 · 1 comment

Comments

@olegdater
Copy link

Describe the bug

When using DiscussionEmbed in NextJS project i get error: Error: Super expression must either be null or a function

To Reproduce

Insert code:


          <DiscussionEmbed
            shortname="MY_SHORT_NAME"
            config={{
              url: `MY_URL`,
              identifier: path,
              title,
              language: 'en_EN',
            }}
          />

Expected behavior

should render discussion

Screenshots

Screenshot 2024-02-17 at 17 50 16
n.

Specifications:

  • OS: OS X 13.6.4
  • Package version: 1.1.5
  • Node version: 20

Additional context

"next": "^13.5.6",
@moonstar-x
Copy link

Have you tried adding 'use client' at the top of the file that imports DiscussionEmbed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants