Skip to content

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. #6646

@zx-zx22

Description

@zx-zx22

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which package are you using?

@sentry/nextjs

SDK Version

7.28.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

  1. nextjs Version 13.0.5
  2. react Version 18.2.0
  3. upgrade @sentry/nextjs 7.14.0 ==> 7.28.1

Expected Result

升级后能正常启动

Actual Result

image
升级后项目报错,回退到7.14.0能正常启动

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions