Skip to content

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

@jameszmartin

Description

@jameszmartin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions