Availity / availity-reactstrap-validation

Easy to use React validation components compatible for reactstrap.
https://availity.github.io/availity-reactstrap-validation/
MIT License
191 stars 70 forks source link

Cannot read properties of undefined (reading 'propTypes') #258

Closed HarshMB closed 2 years ago

HarshMB commented 2 years ago

After installing this module in react app, it is showing below error :-

Uncaught TypeError: Cannot read properties of undefined (reading 'propTypes') at Object../node_modules/availity-reactstrap-validation/lib/AvFeedback.js (AvFeedback.js:53) at Object.options.factory (react refresh:6) at webpack_require__ (bootstrap:24) at fn (hot module replacement:61) at Object../node_modules/availity-reactstrap-validation/lib/AvCheckboxGroup.js (AvCheckboxGroup.js:65) at Object.options.factory (react refresh:6) at webpack_require__ (bootstrap:24) at fn (hot module replacement:61) at Object../node_modules/availity-reactstrap-validation/lib/index.js (index.js:10) at Object.options.factory (react refresh:6)

Below are the dependencies i am using :-

"react": "^17.0.2", "react-dom": "^17.0.2", "react-router-dom": "^5.2.0", "react-scripts": "5.0.0", "reactstrap": "^9.0.1"

My Node js version is :- 14.18.1 My npm version is :- 6.14.15 My python version is :- 2.7.16

Please suggest some solution as soon as possible

jordan-a-young commented 2 years ago

This library was marked as deprecated before reactstrap version 9 came out. Try downgrading reactstrap to version 8 and see if it fixes the issue.

HarshMB commented 2 years ago

Yes it's working after downgrading reactstrap version to 8.10.1

Thanks @jordan-a-young