Skip to content

TypeError: React.PropTypes is undefined. Migrating 2.3 -> 2.4 #825

Closed
@thorstenhirsch

Description

@thorstenhirsch

After upgrading from 2.3.1 to 2.4.0 my react components don't work anymore. In the console I get the following error:
TypeError: React.PropTypes is undefined
I've already seen that React.PropTypes has been deprecated and is now in its own module (prop-types), but downloading prop-types.min.js and including it before including react_ujs did not solve the problem. I guess the following statement needs to be added now:
var PropTypes = require('prop-types');

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions