Skip to content

Missing vite dependency #29921

Closed
Closed

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

Activity

  1. added 2 commits that reference this issue on Mar 25, 2025
    e0abdf3
    4267a80
  2. alan-agius4 commented on Mar 25, 2025

    @alan-agius4
    Collaborator

    Closed via #29928

  3. angular-automatic-lock-bot commented on Apr 25, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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