Do you get any warnings or errors on building?

13 replies
Last updated: Jan 7, 2021
Do you get any warnings or error on building.
AI Update

It looks like you're asking someone else if they're experiencing build warnings or errors as part of troubleshooting their issue. This appears to be a follow-up diagnostic question in an ongoing conversation.

Since this is a Q&A format rather than a threaded discussion, I don't have the context of the original problem you're helping to diagnose. If you're the person experiencing the issue and someone asked you this question, here's how to respond helpfully:

Check for build warnings/errors by:

  1. Running your build command and capturing the full output:

    • For Studio: sanity build or npm run build
    • For Next.js: npm run build or yarn build
    • Look for any red error messages or yellow warnings
  2. Check your terminal/console for:

    • TypeScript errors
    • Dependency warnings
    • Schema validation issues
    • Missing environment variables
  3. Share the specific output including:

    • The exact error message text
    • Stack traces if present
    • Which command you ran
    • Your Node.js version (node -v)
    • Your Sanity Studio version (check package.json)

If you're trying to help someone else and need to ask this question in a real conversation thread, you might want to also ask them to run the build with verbose logging enabled or check their browser console for client-side errors.

Could you clarify if you're asking this as a diagnostic question for someone else, or if you're the one experiencing an issue and need help interpreting your build output?

Show original thread
13 replies
no, it deploys perfectly... but when I make changes in the studio it is not updated
You probably need to enable revalidation, otherwise Next.js will keep serving your data it retrieved on build.
In local (develop mode) getStaticProps will fetch the data every time you load or change the page.
you probably need to add a webhook to trigger rebuild on content publish
Yeah forgot about the revalidation!
Will update the code, thank you very much ๐Ÿ˜„
๐ŸŽ‰ worked! :party_parrot:
(Thanks for helping out folks!)
Yeah forgot about the revalidation!
Will update the code, thank you very much ๐Ÿ˜„
(Thanks for helping out folks!)
๐ŸŽ‰ worked! :party_parrot:

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.

Was this answer helpful?