Skip to content

What I should do if another dependency use React.PropTypes #11661

@theGABS

Description

@theGABS

I use "react": "16.0.0-beta.5".

Some another package use React.PropTypes - I cannot update another package. What should I Do?

I search some polyfill. I try to write my own, but it doesn't work.

import * as allReact from 'react';
import PropTypes from 'prop-types';

allReact.PropTypes = PropTypes

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