Skip to content

[Bug] Webpack isn't marked as a transitive peer dependency #34

@JamesYeoman

Description

@JamesYeoman

Describe the bug

Using the berry version of yarn, with the improved install logging that is default on the berry version, addon-postcss is being flagged as not providing webpack, which is a peer dependency for css-loader, postcss-loader, and style-loader.

Yarn even makes the error codes clickable to open the yarn docs page for the error code.

Steps to reproduce the behavior

Using the berry version of yarn, install @storybook/addon-postcss

Expected behavior

This package should declare webpack as a peer dependency, making it possible for yarn to hoist peer dependencies

Screenshots and/or logs

image

Environment

  • OS: Windows 10
  • Node.js version: v16.10.0
  • Yarn version: v3.1.1 (yarn set version berry)

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