Skip to content

Bug with prop-types import #385

@ngxccc

Description

@ngxccc

For anyone encountering this error, a workaround is to install prop-types. If you are using TypeScript, you also need to install @types/prop-types.

Then, in the file react-csv/src/metaProps.js, replace the following line:
import { string, array, oneOfType, bool, func } from 'prop-types';
with this line:
const { string, array, oneOfType, bool, func } = 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