Skip to content

[Bug] prop-types missing in dependencies #49

Open
@onichandame

Description

Describe the bug

This addon requires prop-types as a direct dependency, but does not declare it in either dependencies or peerDependencies. A quick search in issues does not give me any result.

Steps to reproduce the behavior

  1. create a project using yarn v2 pnp
  2. add storybook and this addon
  3. run storybook to see the error

Expected behavior

no error

Screenshots and/or logs

无标题

Environment

N/A

Additional context

N/A

Workaround

in yarnrc.yml

packageExtensions:
  "@storybook/addon-console@*":
    dependencies:
      prop-types: "*"

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions