Josh-ES / react-here-maps

React.js HERE Maps component
MIT License
35 stars 25 forks source link

Get the React.PropTypes.Object error when using "react": "^16.4.2", #25

Open rsand111 opened 6 years ago

rsand111 commented 6 years ago

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 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

Anshr commented 6 years ago

Same issue here.

seanconrad1 commented 6 years ago

Also receiving the same issue

quocthangit247 commented 6 years ago

i have a same issue.

MonaAliIbrahim commented 4 years ago

1) npm install --save prop-types

2) node_modules\react-here-maps\dist\Circle.js

3) node_modules\react-here-maps\dist\Marker.js

4) node_modules\react-here-maps\dist\HEREMap.js