Skip to content

ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' #3575

Closed
@followbl

Description

@followbl

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

"@sentry/nextjs": "6.4.1",

Description

When we include import * as Sentry from '@sentry/nextjs' anywhere within the app - it throws this ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' this error on build yarn run build - FWIW - we are still on webpack4

Metadata

Metadata

Assignees

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