-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux Autoform Material UI fails to work #296
Comments
@nagamohanm the trouble is that with React v16 PropTypes is not anymore part of the React bundle. It has its own package called prop-types. In the meantime, would you mind to use React v15? |
@JonatanSalas One quick update (though it was done noobish-ly): I updated react to v16 in redux-autoform-material-ui and imported PropTypes from 'prop-types', I encountered a few issues with regard to the 'form' element in Root.js This may or may not help you, but just wanted to put across what i encountered. Awaiting for your quick update ;) Thanks in advance. |
@nagamohanm Great! Thanks for the feedback! I will review at night. |
@nagamohanm I'm currently reviewing it. I have updated all the codebase from the material-UI library. |
Hi,
When I try to use redux-autoform-material-ui, I am getting the following error:
Uncaught TypeError: Cannot read property 'array' of undefined at Object.defineProperty.value (Root.js:54) at __webpack_require__ (bootstrap bcc975b2ee732410aa4f:19) at Object.defineProperty.value (MaterialUIFactory.js:13) at __webpack_require__ (bootstrap bcc975b2ee732410aa4f:19) at Object.defineProperty.value (index.js:8) at __webpack_require__ (bootstrap bcc975b2ee732410aa4f:19) at Object.defineProperty.value (dynamicForm.js:5) at __webpack_require__ (bootstrap bcc975b2ee732410aa4f:19) at Object.<anonymous> (index.js:4) at __webpack_require__ (bootstrap bcc975b2ee732410aa4f:19)
Upon checking, we found that PropTypes is undefined in Root.js
Please find below the versions that we are using:
"react": "^16.0.0",
"redux-autoform": "^0.13.1-experimental",
"redux-autoform-material-ui": "^1.1.9-experimental",
"redux-autoform-utils": "^1.0.6-experimental",
"redux-form": "^7.2.3",
"material-ui": "^0.20.0",
"materialize-css": "^0.100.2",
"materialize-sass": "^0.98.2"
Please let me know if you need anything else
The text was updated successfully, but these errors were encountered: