How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

Module Not Found Error for siteSettings on Vercel Build (Works Locally)

41 repliesLast updated: Nov 29, 2025

hi all, im building a nextjs project. my problem is with vercel. im getting a
module not found - can't resolve
error on vercel’s build logs. build is successful locally but not on vercel. i tried to rename the file, change its order in the schema, deleted and reinstalled node_modules and non worked. i double checked the file ans it’s exported properly like other documents. it’s weird that it’s only this file
siteSettings
and i have no idea why. any ideas would be much appreciated
AI Update

This is a common issue that usually comes down to case-sensitivity differences between your local environment and Vercel's build environment. Here's what's likely happening:

The Root Cause:

How to Fix It:

Quick Debug Steps:

Since you mentioned it works locally but not on Vercel, and you've already tried reinstalling dependencies, case-sensitivity is almost certainly the culprit. Even a single character difference in capitalization will cause this exact error pattern.

Show original thread
41 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