Get the React.PropTypes.Object error when using "react": "^16.4.2",
Trying to add react-here-maps library to a react app version 16.4.2, but getting the : TypeError: Cannot read property 'object' of undefined 55 | } 56 | // define the context types that are passed down from a <HEREMap> instance 57 | Circle.contextTypes = {
58 | map: React.PropTypes.object 59 | }; 60 | Circle.defaultProps = { 61 | fillColor: "rgba(255, 255, 255, 0.5)",
I do believe that this is due to the 'prop-types' being moved to it's own library. What are the chance of recompiling it with a more recent version of react ? I try building the library myself, but the build failed with an error stating that it was looking for a apple enviroment. Do you know of another more modern library ???
Regards RS
Same issue here.
Also receiving the same issue
i have a same issue.
-
npm install --save prop-types
-
node_modules\react-here-maps\dist\Circle.js
- adding var PropTypes = require('prop-types');
- changing line 58 Circle.contextTypes = { map: PropTypes.object };
-
node_modules\react-here-maps\dist\Marker.js
- adding var PropTypes = require('prop-types');
- changing line 71 Marker.contextTypes = { map: PropTypes.object };
-
node_modules\react-here-maps\dist\HEREMap.js
- adding var PropTypes = require('prop-types');
- changing line 91 HEREMap.childContextTypes = { map: PropTypes.object };