Skip to content

Bug: _match is not a function #209

@sxzz

Description

@sxzz

Environment

Node: v22.13.1 / v20.18.3

Reproduction

> require('pathe').matchesGlob('x','x')
Uncaught TypeError: _match is not a function
    at zeptomatch (/Users/kevin/Developer/open-source/unplugin-utils/node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.Dh3l6lAN.cjs:11:10)
    at Object.matchesGlob (/Users/kevin/Developer/open-source/unplugin-utils/node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.Dh3l6lAN.cjs:230:10)

Describe the bug

_match is

{ zeptomatch: [Getter] }

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions