Skip to content

Nuxt build fails when using yarn berry plug-n-play mode #241

Description

@LunaTK

Describe the bug

  • Nuxt >= v2.15.0 build fails with Yarn v3 PnP because of unmet peerDependency of @nuxt/components
    • @nuxt/components has peerDependency of consola, but nuxt itself does not has consola as a dependency
  • This unmet peerDependency is treated differently depending on the package manager.
    • Yarn v1 treats it as a warning
      yarn_v1
    • Yarn v3 PnP mode treats it as an error
      yarn_v3

Is there any reason for specifying consola as a peerDependency? If not necessary, I guess it would better be removed.

To Reproduce

Expected behavior

  • Nuxt build should succeed no matter which package manager is used

Screenshots
provided above

Additional context
none

Activity

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