Google-map-react: Cannot find module 'prop-types'

Created on 19 Apr 2017  路  4Comments  路  Source: google-map-react/google-map-react

I just installed version 0.24.0 and got this error: Cannot find module 'prop-types'.

Seems like it is missing a dependency.

Most helpful comment

Yeah I figured that out later, I just thought that maybe is a mistake that prop-types was listed as peer dependency.

All 4 comments

@figalex
prop-types is a peer dependency of this module. You need to install it separately into your project.

https://github.com/istarkov/google-map-react/blob/master/package.json#L45

@figalex You can do npm install "prop-types" or yarn add "prop-types" and it'll work!

Yeah I figured that out later, I just thought that maybe is a mistake that prop-types was listed as peer dependency.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirylkliushkin picture kirylkliushkin  路  4Comments

junibrosas picture junibrosas  路  3Comments

Pau1fitz picture Pau1fitz  路  4Comments

colinwitkamp picture colinwitkamp  路  4Comments

lord-xeon picture lord-xeon  路  3Comments