pieterv / react-googlemaps

A declarative React interface to Google Maps
MIT License
226 stars 68 forks source link

examples did not work: Module not found: Error: #38

Open jameszmartin opened 8 years ago

jameszmartin commented 8 years ago

I followed the installation instruction in the examples, from the root repo

npm install
npm run build-examples

However the following errors occurred:

ERROR in ./src/ReactMapComponents.js
Module not found: Error: Cannot resolve module 'react/lib/mapObject' in /Users/jmart/experiment/react-googlemaps/src
 @ ./src/ReactMapComponents.js 4:16-46

ERROR in ./src/ui/MapOption.js
Module not found: Error: Cannot resolve module 'react/lib/invariant' in /Users/jmart/experiment/react-googlemaps/src/ui
 @ ./src/ui/MapOption.js 3:16-46

ERROR in ./src/ui/MapEvent.js
Module not found: Error: Cannot resolve module 'react/lib/invariant' in /Users/jmart/experiment/react-googlemaps/src/ui
 @ ./src/ui/MapEvent.js 3:16-46

ERROR in ./src/GoogleMapsAPI.js
Module not found: Error: Cannot resolve module 'react/lib/invariant' in /Users/jmart/experiment/react-googlemaps/src
 @ ./src/GoogleMapsAPI.js 3:16-46

ERROR in ./src/ui/ReactMapComponent.js
Module not found: Error: Cannot resolve module 'react/lib/invariant' in /Users/jmart/experiment/react-googlemaps/src/ui
 @ ./src/ui/ReactMapComponent.js 4:16-46

ERROR in ./src/ui/components/ReactMap.js
Module not found: Error: Cannot resolve module 'react/lib/keyMirror' in /Users/jmart/experiment/react-googlemaps/src/ui/components
 @ ./src/ui/components/ReactMap.js 5:16-46

ERROR in ./src/ui/ReactMapComponentMixin.js
Module not found: Error: Cannot resolve module 'react/lib/invariant' in /Users/jmart/experiment/react-googlemaps/src/ui
 @ ./src/ui/ReactMapComponentMixin.js 4:16-46
ghost commented 8 years ago

+1

kamalmuthu commented 8 years ago

+1

factoryhr commented 8 years ago

+1