Skip to content

CommentCount.js:125 Uncaught TypeError: Cannot read properties of undefined (reading 'string')  #152

Description

@korkorran

Describe the bug

When trying to display disqus comments with react-disqus package, I get the error

CommentCount.js:125 Uncaught TypeError: Cannot read properties of undefined (reading 'string') at node_modules/disqus-react/lib/CommentCount.js

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/~/github.com/frederic-lang/awesome-konva-react-demos . error is shown on the 'disqus' branch
  2. See the app is not displayed

Expected behavior

The app should display with disqus comments on the 'drag a star' page

Screenshots

Capture d’écran du 2023-12-05 12-03-13

Specifications:

  • OS: ubuntu
  • Package version: "disqus-react": "^1.1.5",
  • Node version: v21.1.0

Additional context

prop-types is marked as an external dependencies in vite.config.ts (required by vite)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions