Skip to content

Missing vite dependency #29921

Closed
Closed
@bgotink

Description

@bgotink

Command

ø

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

18.2.13

Description

#29522 removed the vite dependency from @angular-devkit/build-angular, but that's a required peer dependency of @vitejs/plugin-basic-ssl.

Image

Currently we "fix" this in our projects by adding the following extension in yarn:

packageExtensions:
  "@vitejs/plugin-basic-ssl@*":
    peerDependenciesMeta:
      vite:
        optional: true

Minimal Reproduction

Use a strict package manager (e.g. yarn 4), install @angular-devkit/build-angular, notice warning.

Exception or Error


Your Environment

yarn 4, @angular-devkit/* 18.2.15

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions