Get a peek at our latest innovations at Sanity Product Day on Dec 8th →

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.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.