Build with Sanity MCP in Replit. Prizes up for grabs! Submit by June 14 →

Cannot find module 'prop-types' after installing @sanity/google-maps-input

16 repliesLast updated: Nov 29, 2025

Hi! 😯All was running fine with my project Sanity studio...
till I installed
@sanity/google-maps-input
and it dose not look very good😮!I get a long list starting with error:

Error: Cannot find module 'prop-types'
Require stack:
Any idea? Thank you!!!
AI Update

The "Cannot find module 'prop-types'" error you're seeing is a missing dependency issue. The @sanity/google-maps-input plugin relies on prop-types but it's not being installed automatically as a peer dependency.

Here's how to fix it:

Install the missing dependency:

npm install prop-types

or if you're using yarn:

yarn add prop-types

Why this happens:

The @sanity/google-maps-input plugin was built for an earlier version of Sanity Studio and may have outdated dependency declarations. In older React applications, prop-types was commonly used for runtime type checking, but in modern setups it needs to be explicitly installed if a package requires it.

Additional troubleshooting:

If you continue to see errors after installing prop-types, you might also need to check:

After installing the missing dependencies, restart your Studio dev server and the errors should be resolved!

Show original thread
16 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions