Skip to content
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

Open
nagamohanm opened this issue Feb 20, 2018 · 4 comments
Open

Redux Autoform Material UI fails to work #296

nagamohanm opened this issue Feb 20, 2018 · 4 comments

Comments

@nagamohanm
Copy link

nagamohanm commented Feb 20, 2018

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

@JonatanSalas
Copy link
Member

@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.
I will update today at night all the packages to use the prop-types library.

In the meantime, would you mind to use React v15?

@nagamohanm
Copy link
Author

nagamohanm commented Feb 20, 2018

@JonatanSalas
Thank you for the quick response. Unfortunately, the client requires me to use the "latest" react bundle.

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.

reduxautoform error

Awaiting for your quick update ;)

Thanks in advance.

@JonatanSalas
Copy link
Member

@nagamohanm Great! Thanks for the feedback! I will review at night.

@JonatanSalas
Copy link
Member

@nagamohanm I'm currently reviewing it. I have updated all the codebase from the material-UI library.
I will review redux-autoform repository, and also all the UI-libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants