{"action":"created","issue":{"url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/39","repository_url":"https://api.github.com/repos/pieterv/react-googlemaps","labels_url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/39/comments","events_url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/39/events","html_url":"https://github.com/pieterv/react-googlemaps/issues/39","id":138505224,"number":39,"title":"Wall of errors when using in ES6 project","user":{"login":"sebastialonso","id":3493453,"avatar_url":"https://avatars.githubusercontent.com/u/3493453?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastialonso","html_url":"https://github.com/sebastialonso","followers_url":"https://api.github.com/users/sebastialonso/followers","following_url":"https://api.github.com/users/sebastialonso/following{/other_user}","gists_url":"https://api.github.com/users/sebastialonso/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastialonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastialonso/subscriptions","organizations_url":"https://api.github.com/users/sebastialonso/orgs","repos_url":"https://api.github.com/users/sebastialonso/repos","events_url":"https://api.github.com/users/sebastialonso/events{/privacy}","received_events_url":"https://api.github.com/users/sebastialonso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-04T15:39:51Z","updated_at":"2016-05-29T15:39:15Z","closed_at":null,"body":"This looks like the simplest library for GoogleMaps, so I decided to try it.\r\nImporting thins like this\r\n\r\n~~~\r\nimport React, { Component } from 'react'\r\nimport ReactGoogleMaps, { Map, Marker, OverlayView } from 'react-googlemaps'\r\nconst GoogleMapsAPI = window.google.maps\r\n\r\nclass Example extends Component {\r\n...\r\n~~~\r\n\r\nAlso, I have the google maps script in index.html\r\n<script src=\"http://maps.googleapis.com/maps/api/js\"></script>\r\n<script src=\"bundle.js\"></script>\r\n\r\nBut all I get is\r\n~~~\r\nERROR in ./~/react-googlemaps/src/ReactMapComponents.js\r\nModule not found: Error: Cannot resolve module 'react/lib/mapObject' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src\r\n @ ./~/react-googlemaps/src/ReactMapComponents.js 4:16-46\r\n\r\nERROR in ./~/react-googlemaps/src/ui/components/ReactMap.js\r\nModule parse failed: /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui/components/ReactMap.js Line 55: Unexpected token <\r\nYou may need an appropriate loader to handle this file type.\r\n|     if (this.state.mapLifeCycleState !== MapLifeCycle.CREATING_HOLDER) {\r\n|       map = (\r\n|         <GoogleMapsMap\r\n|           {...this.props}\r\n|           ref=\"map\"\r\n @ ./~/react-googlemaps/src/ui/ReactDefaultInjection.js 7:15-47\r\n\r\nERROR in ./~/react-googlemaps/src/ui/components/ReactOverlayView.js\r\nModule parse failed: /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui/components/ReactOverlayView.js Line 36: Unexpected token <\r\nYou may need an appropriate loader to handle this file type.\r\n| \r\n|   React.render(\r\n|     cloneWithProps(<div />, props),\r\n|     this._containerElement\r\n|   )\r\n @ ./~/react-googlemaps/src/ui/ReactDefaultInjection.js 8:23-63\r\n\r\nERROR in ./~/react-googlemaps/src/ui/components/ReactFrag.js\r\nModule parse failed: /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui/components/ReactFrag.js Line 24: Unexpected token <\r\nYou may need an appropriate loader to handle this file type.\r\n| \r\n|     return (\r\n|       <span>{children}</span>\r\n|       );\r\n|   }\r\n @ ./~/react-googlemaps/src/ui/ReactDefaultInjection.js 9:16-49\r\n\r\nERROR in ./~/react-googlemaps/src/ui/MapOption.js\r\nModule not found: Error: Cannot resolve module 'react/lib/invariant' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui\r\n @ ./~/react-googlemaps/src/ui/MapOption.js 3:16-46\r\n\r\nERROR in ./~/react-googlemaps/src/ui/MapEvent.js\r\nModule not found: Error: Cannot resolve module 'react/lib/invariant' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui\r\n @ ./~/react-googlemaps/src/ui/MapEvent.js 3:16-46\r\n\r\nERROR in ./~/react-googlemaps/src/GoogleMapsAPI.js\r\nModule not found: Error: Cannot resolve module 'react/lib/invariant' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src\r\n @ ./~/react-googlemaps/src/GoogleMapsAPI.js 3:16-46\r\n\r\nERROR in ./~/react-googlemaps/src/ui/ReactMapComponent.js\r\nModule not found: Error: Cannot resolve module 'react/lib/invariant' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui\r\n @ ./~/react-googlemaps/src/ui/ReactMapComponent.js 4:16-46\r\n\r\nERROR in ./~/react-googlemaps/src/ui/ReactMapComponentMixin.js\r\nModule not found: Error: Cannot resolve module 'react/lib/invariant' in /home/seba/repos/test_applications/react-redux-cordova-boilerplate/node_modules/react-googlemaps/src/ui\r\n @ ./~/react-googlemaps/src/ui/ReactMapComponentMixin.js 4:16-46\r\n~~~\r\n\r\nWhat's going on here?\r\n\r\n**UPDATE**: exactly the same thing is happening with the examples repo. I'm starting to think it's not me messing things up"},"comment":{"url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/comments/222367011","html_url":"https://github.com/pieterv/react-googlemaps/issues/39#issuecomment-222367011","issue_url":"https://api.github.com/repos/pieterv/react-googlemaps/issues/39","id":222367011,"user":{"login":"chappydboz","id":867659,"avatar_url":"https://avatars.githubusercontent.com/u/867659?v=3","gravatar_id":"","url":"https://api.github.com/users/chappydboz","html_url":"https://github.com/chappydboz","followers_url":"https://api.github.com/users/chappydboz/followers","following_url":"https://api.github.com/users/chappydboz/following{/other_user}","gists_url":"https://api.github.com/users/chappydboz/gists{/gist_id}","starred_url":"https://api.github.com/users/chappydboz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chappydboz/subscriptions","organizations_url":"https://api.github.com/users/chappydboz/orgs","repos_url":"https://api.github.com/users/chappydboz/repos","events_url":"https://api.github.com/users/chappydboz/events{/privacy}","received_events_url":"https://api.github.com/users/chappydboz/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T15:39:15Z","updated_at":"2016-05-29T15:39:15Z","body":"+1"}}
{"actor":{"display_login":"chappydboz"}}