Problem with installing Sanity CMS for NextJS with Tailwindcss, solution found in a different guide.

17 replies
Last updated: Dec 15, 2022
πŸ‘‹ Hello, team! I have a problem with installing Sanity CMS for NextJS with Tailwindcss. I followed the guide https://www.sanity.io/guides/sanity-nextjs-tailwindcss . Sanity works well, before I install Tailwind, after I install Tailwind I get the error in the attached screenshot. Is there a solution for this or am I doing something wrong?
Dec 13, 2022, 1:46 PM
Note that this is a V2 project and quite old
Dec 13, 2022, 2:02 PM
Dec 13, 2022, 2:03 PM
Hi Harald, thanks for replaying that quick! Yes I noticed that it is a guide from V2. I will try the guide you just posted. Thanks
Dec 13, 2022, 2:04 PM
try this instead. This fit your purpose a lot better. Using NextJS, tailwindCSS and Sanity. and help you with deploying a vercel link!
Dec 13, 2022, 2:06 PM
Great! Thank you very much! I will look in on it directly πŸ™
Dec 13, 2022, 2:06 PM
No worries!
Dec 13, 2022, 2:07 PM
Damn! I’m the one who wrote that guide, and sorry for that πŸ™‚
Dec 13, 2022, 2:17 PM
I’m gonna write a new one for v3 + next 13 soon!
Dec 13, 2022, 2:17 PM
user E
In the meantime, just clone this repo and you are good to go: https://github.com/surjithctly/jamstack-starter
It uses Sanity v3, Next 13 (appDir) and TailwindCSS
Dec 13, 2022, 2:19 PM
Thank you Surjith πŸ™
Dec 13, 2022, 2:22 PM
user H
I cloned your repo and tried to run it, but unfortunately, it doesnt work
Dec 13, 2022, 4:36 PM
user H
user E
I have the same problem, trying to figure out what I'm doing wrong for a while now. If you find a solution, can you please share it with me. πŸ˜‰
Dec 13, 2022, 6:17 PM
user U
user E
That works perfect and good explained! Thank you very much! To bad wasted my time, thanks again!
Dec 13, 2022, 7:59 PM
user U
user E
That works perfect and good explained, thanks again!
Dec 13, 2022, 8:00 PM
user E
user E
what error do you get? can you share screenshot? I have it working on my local without any problem.
Dec 15, 2022, 6:04 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?