You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find type definition file for 'minimatch' #17342
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
Setup new nextjs project
Install @sentry/nextjs then run
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.
Hey, the minimatch version we include ships its own types. What version of this is installed for you, and do you have more details (e.g. a stacktrace, ...) about the error?
but without installing it manually...? We use v9 internally, but that also has types and is a regular dependency so should be installed normally for you 🤔
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Activity
linear commentedon Aug 6, 2025
JS-839 Cannot find type definition file for 'minimatch'
mydea commentedon Aug 7, 2025
Hey, the minimatch version we include ships its own types. What version of this is installed for you, and do you have more details (e.g. a stacktrace, ...) about the error?
anuj9196 commentedon Aug 7, 2025
@mydea Installing it manually solved the issue. The version installed is
command used
mydea commentedon Aug 7, 2025
but without installing it manually...? We use v9 internally, but that also has types and is a regular dependency so should be installed normally for you 🤔
getsantry commentedon Aug 29, 2025
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀