Skip to content

[Sentry/Next.js] Not working with Webpack 5 on Next.js 11 #3688

Closed
@BjoernRave

Description

@BjoernRave

When trying to start my app with next 11, where webpack 5 is enabled by default I get the following error:

[Sentry] Could not initialize SDK. Received error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

Packages:
"@sentry/nextjs": "^6.7.1",
"next": "^11.0.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions