✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Build Failure Because of Webpack Errors

1 replies
Last updated: Jun 16, 2022
hey, beautiful people, I'm trying to deploy to vercel and I'm getting this series of errors
./pages/episodes/[slug].js11
:33:35.354Module not found: Can't resolve '@sanity/client' in '/vercel/path0/pages/episodes'
./pages/index.js11
:33:35.355Module not found: Can't resolve 'groq' in '/vercel/path0/pages'
./pages/index.js11
:33:35.355Module not found: Can't resolve '@sanity/client' in '/vercel/path0/pages'

Build failed because of webpack errors1135.392Error! Command "npm run build" exited with 11135.497Error: Command "vercel build" exited with 1
Jun 16, 2022, 2:38 PM
Solved in DMs:
@sanity/client
was a missing dependency.
Jun 16, 2022, 3:43 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?