Skip to content

Receiving a react error that prop-types could not be found #115

@sadsa

Description

@sadsa

When using the PNPM package manager, any dependecies not explicitly mentioned in the package.json will be ignored at time of package installation.

The following code (found in dist-web/index.js) make the following reference to the prop-types package.

let PropTypes;

try {
  PropTypes = require("prop-types");
} catch (e) {}

React apps throw an error, complaining that the prop-types package could not be resolved.

The fix, is to add prop-types as a dependency in the package.json.

I will commit a PR to hopefully which fixes the issue.

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