Skip to content

[bug]: error TS2688: Cannot find type definition file for 'minimatch' #94

@krish512

Description

@krish512

Bug Description

Yarn build is failing as: error TS2688: Cannot find type definition file for 'minimatch'.

yarn run v1.22.22
$ strapi build
- Compiling TS
error TS2688: Cannot find type definition file for 'minimatch'.
  The file is in the program because:
    Entry point for implicit type library 'minimatch'

Found 1 error(s).

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
Error: building at STEP "RUN yarn build": while running runtime: exit status 1

Steps to Reproduce

Pull latest strapi
run yarn build

Expected Behavior

Should build fine without errors

Version

5.7.0

Operating System

MacOS

Runtime Environment

Node.js

Logs

yarn run v1.22.22
$ strapi build
- Compiling TS
error TS2688: Cannot find type definition file for 'minimatch'.
  The file is in the program because:
    Entry point for implicit type library 'minimatch'

Found 1 error(s).

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
Error: building at STEP "RUN yarn build": while running runtime: exit status 1

Media

No response

Confirmation Checklist

  • I have checked the existing issues
  • I agree to follow this project's Code of Conduct
  • I would like to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugstatus: to be confirmedThe issue needs to be reproduced or confirmed by a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions