disqus-react icon indicating copy to clipboard operation
disqus-react copied to clipboard

Error: Super expression must either be null or a function

Open nederev opened this issue 1 year ago • 1 comments

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",

nederev avatar Feb 17 '24 13:02 nederev

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

moonstar-x avatar Feb 29 '24 16:02 moonstar-x