Skip to content

Dependencies are not compatible with React 16 #3714

@bezreyhan

Description

@bezreyhan
Q A
Bug or feature request? Feature request
Which Swagger/OpenAPI version?
Which Swagger-UI version? swagger-ui@3.2.0
How did you install Swagger-UI? npm
Which browser & version? Chrome latest
Which operating system? OSX

Demonstration API definition

Expected Behavior

When upgrading to React 16, Swagger UI should not throw any errors.

Current Behavior

It throws an error.

Possible Solution

Upgrade react-collapse to use a newer version.

Context

I am embedding Swagger-UI in my React app. I tried to upgrade to React 16 but got some errors. Swagger UI uses an old version of react-collapse that uses an old version of react-motion that is using react.PropTypes, which no longer exist in React.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions