Skip to content

Cannot find type definition file for 'minimatch' #17342

@anuj9196

Description

@anuj9196

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

10.1.0

Framework Version

Next 15.4.5

Link to Sentry event

No response

Reproduction Example/SDK Setup

After installing latest version of @sentry/nextjs, building application started giving error

pnpm run build

The erorr

Type error: Cannot find type definition file for 'minimatch'.
  The file is in the program because:
    Entry point for implicit type library 'minimatch'

After deep checking, @sentry/nextjs is the only package depending on minimatch

This package is also mentioned in this pull request merged on July 2
#16789

Steps to Reproduce

  1. Setup new nextjs project
  2. Install @sentry/nextjs then run
  3. Build application by running
pnpm run build

Expected Result

minimatch should be part of the package and installed automatically

Actual Result

minimatch requires external installation and interrupts building application. Initially it is difficult to find the root cause because of very generic error statement without mentioning traceback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions