Skip to content

react as peerDependency #3934

@janusch

Description

@janusch
Q A
Bug or feature request? Causes Bug "Multiple Copies of react installed"
Which Swagger/OpenAPI version? unrelated
Which Swagger-UI version? "swagger-ui": "^3.4.4"
How did you install Swagger-UI? npm install
Which browser & version? all browsers
Which operating system? all

Expected Behavior

declare dep to react as peerDependency not as dependency

Current Behavior

bug if app is using different version of react.

Possible Solution

facebook/react#8026 (comment)

Context

it sneaked in through updating swagger-ui

Would be great if you would not mind changing this.
Thank you for your great work on swagger!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions