diff --git a/package.json b/package.json index 0c555896..3bd7a633 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "react-component" ], "dependencies": { - "form-data-to-object": "^0.2.0" + "form-data-to-object": "^0.2.0", + "prop-types": "^15.5.10" }, "devDependencies": { "babel-cli": "^6.6.5", diff --git a/src/Mixin.js b/src/Mixin.js index b8be8be2..f518dd46 100644 --- a/src/Mixin.js +++ b/src/Mixin.js @@ -1,6 +1,7 @@ var PropTypes = require('prop-types'); var utils = require('./utils.js'); var React = global.React || require('react'); +var PropTypes = require('prop-types'); var convertValidationsToObject = function (validations) { diff --git a/src/main.js b/src/main.js index 27ee7276..b7b8613c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,6 @@ var PropTypes = require('prop-types'); var React = global.React || require('react'); +var PropTypes = require('prop-types'); var createReactClass = require('create-react-class'); var Formsy = {}; var validationRules = require('./validationRules.js');