Error when deploying Next.js + Sanity project to Vercel with Lerna and React-Icons

1 replies
Last updated: Jan 21, 2021
I’m trying to turn my nextjs + sanity project into a monorepo with lerna and deploying it to vercel, but I’m struggling to make it work. During vercel-build I get this error:
Module not found: Error: Can't resolve 'react-icons/Im' in '/vercel/workpath0/sanity/schemas'
. The build works locally, and react-icons is a dependency in
. I used the nextjs-ecommerce-starter as inspiration, where everything seems to work nicely. Did I miss something?

Source code here
Jan 21, 2021, 6:54 AM
Hi Daniel - shot in the dark, but could it have an issue with the capitalised
? Have you tried importing from
Jan 21, 2021, 7:11 AM

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?