You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.
I have this when I try to use react-heatmap 👍
×
TypeError: Cannot read property 'number' of undefined ./node_modules/react-heatmap/lib/ReactHeatmap.js
c:/Users/Covarians/Documents/aex-server/client/node_modules/react-heatmap/lib/ReactHeatmap.js:96
93 | })(_react.Component);
94 |
95 | ReactHeatmap.propTypes = {
Version issue. I don't think react-heatmap support latest version of react (16). I had to downgrade my version to get it to work without commenting out code.
React 16+ has separated prop types into a separate package. The work around is to fork the repo, add import PropTypes from 'prop-types'; to the top, and install your fork in your project.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have this when I try to use react-heatmap 👍
×
TypeError: Cannot read property 'number' of undefined ./node_modules/react-heatmap/lib/ReactHeatmap.js
c:/Users/Covarians/Documents/aex-server/client/node_modules/react-heatmap/lib/ReactHeatmap.js:96
93 | })(_react.Component);
94 |
95 | ReactHeatmap.propTypes = {
Note : I commented the lines and it worked. But this is a temporary fix.
The text was updated successfully, but these errors were encountered: