Closed wizidot closed 6 years ago
Hi, This package is awsome but it's not compatible withe the last release of React (16+). To prevent some issues with proptypes you need to import the prop-types package as described here : https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
.meteor\packages\vulcan_forms-upload\1.3.2\web.browser\lib\Upload.jsx .meteor\packages\vulcan_forms-upload\1.3.2\os\lib\Upload.jsx .meteor\packages\vulcan_forms-upload\1.3.2\web.cordova\lib\Upload.jsx
import { Components, getSetting, registerComponent } from 'meteor/vulcan:lib'; import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import PropTypes from 'prop-types';
[...]
Upload.propTypes = { name: PropTypes.string, value: PropTypes.any, label: PropTypes.string }; Upload.contextTypes = { addToAutofilledValues: PropTypes.func, }
Hey @wizidot !
This package is now part of vulcan's core 👍
https://github.com/VulcanJS/Vulcan/tree/master/packages/vulcan-forms-upload
Thanks for reporting, open an issue there!
Hi, This package is awsome but it's not compatible withe the last release of React (16+). To prevent some issues with proptypes you need to import the prop-types package as described here : https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
.meteor\packages\vulcan_forms-upload\1.3.2\web.browser\lib\Upload.jsx .meteor\packages\vulcan_forms-upload\1.3.2\os\lib\Upload.jsx .meteor\packages\vulcan_forms-upload\1.3.2\web.cordova\lib\Upload.jsx
[...]