Skip to content

TypeError: Cannot read properties of undefined (reading 'stack') when use next-seo #1495

Open
@PlutoCA

Description

@PlutoCA

When using the DefaultSeo or NextSeo components from next-seo, the following error occurs:

TypeError: Cannot read properties of undefined (reading 'stack')

codesandbox demo link

  "dependencies": {
    "next": "15.2.0",
    "next-seo": "^6.6.0",
    "next-sitemap": "^4.2.3",
    "react": "^19.0.0",
    "react-dom": "^19.0.0"
  },

Workaround:
Using the native component works, but the goal is to leverage next-seo's SEO features.

Request for Help:
Guidance is needed to resolve the configuration conflict or identify potential compatibility issues.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions