Skip to content

Vite 3.2.0 type definitions depend on picomatch #10656

Closed
@KamilaBorowska

Description

Describe the bug

Updating Vite to 3.2.0 causes TypeScript to complain about missing picomatch dependency, which is dev dependency of vite.

node_modules/vite/dist/node/index.d.ts(35,43): error TS2307: Cannot find module 'picomatch' or its corresponding type declarations.

This can be seen on https://github.com/xfix/live/actions/runs/3332827904/jobs/5514140592.

index.d.ts contains the following import.

import type { Matcher as Matcher_2 } from 'picomatch';

Matcher_2 is not used anywhere.

Reproduction

https://github.com/xfix/live/actions/runs/3332827904/jobs/5514140592

Steps to reproduce

No response

System Info

GitHub Actions, vite 3.2.0

Used Package Manager

npm

Logs

No response

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    p3-downstream-blockerBlocking the downstream ecosystem to work properly (priority)regressionThe issue only appears after a new release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions