We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to install/integrate Disqus on my Nextjs 14.2.12 web app. But I am getting this error:
⨯ ./node_modules/disqus-react/lib/CommentCount.js:10:1 Module not found: Can't resolve 'prop-types'
⨯ ./node_modules/disqus-react/lib/CommentCount.js:10:1
Module not found: Can't resolve 'prop-types'
Embed this code: ` "use client"
import { ReviewInterface } from "@/types/content" import { DiscussionEmbed } from "disqus-react" import { usePathname } from "next/navigation"
type Props = { data?: ReviewInterface }
export default function DisqusElement({ data }: Props) { const pathname = usePathname()
const disqusConfig = { url: `http://localhost:3000${pathname}`, identifier: pathname.replace('/', ''), title: `sample` } const shortname = "your-shortname" return ( <div> <DiscussionEmbed shortname={shortname as string} config={disqusConfig} /> </div> )
} `
It should render or display the disqus comment plugin.
"next": "14.2.12",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I am trying to install/integrate Disqus on my Nextjs 14.2.12 web app. But I am getting this error:
⨯ ./node_modules/disqus-react/lib/CommentCount.js:10:1
Module not found: Can't resolve 'prop-types'
To Reproduce
Embed this code:
`
"use client"
import { ReviewInterface } from "@/types/content"
import { DiscussionEmbed } from "disqus-react"
import { usePathname } from "next/navigation"
type Props = {
data?: ReviewInterface
}
export default function DisqusElement({ data }: Props) {
const pathname = usePathname()
}
`
Expected behavior
It should render or display the disqus comment plugin.
Screenshots
Specifications:
Additional context
"next": "14.2.12",
The text was updated successfully, but these errors were encountered: