All Questions
Tagged with sanity tailwind-css
14
questions
11
votes
10
answers
16k
views
Sanity.io [vite] Internal server error: [postcss] Cannot read properties of undefined (reading 'config') error
Spinning up the sanity studio gets me this error. The page spins up just fine in local host. Any help fixing this would be greatly appreciated
here is the error in full:
[plugin:vite:css] [postcss] ...
1
vote
0
answers
32
views
Trouble finding out why the page is rendering differently
I was trying to implement Sanity IO and was messing with a bunch of files and making new files and so on. Then poof my local host:3000 went from looking sleek and fancy to just having a white back ...
0
votes
3
answers
3k
views
sanity error: Cannot read properties of undefined (reading 'config')
I've started a next.js project with sanity.io. The setup is successfully completed. Npm run dev spins out the app on localhost successfully. But the problem is when I start the sanity studio.
The ...
0
votes
1
answer
767
views
Sanity posts display all categories, not just ones associated with post
I am working on making a blog using React and Sanity, and I want to display the categories associated with each post underneath each post. I am able to display the categories, but it displays all ...
0
votes
1
answer
715
views
Trouble styling block content using PortableText in Sanity v3 with Next.js and Tailwind CSS
I'm building a personal blog website using Sanity v3, Next.js 13, and Tailwind CSS. I have successfully implemented dynamic blogs using GROQ and everything is almost working. However, I'm facing ...
0
votes
2
answers
264
views
I can't add any classes to my next.js 13 component which is rendering sanity data within a portableText element
I am trying to add styles to my elements. I've tried every method I can find online, including creating a custom component and passing it to the PortableText element, adding the component directly to ...
0
votes
1
answer
342
views
React Route not adding forward slash with path="/post/:slug"
For some reason when I click on one of the posts in the collection of posts section to view the info on one single post, my code is not adding a forward slash / in the URL like so : http://localhost:...
0
votes
0
answers
36
views
first time installing sanity and having a error which shows as following
Trying to install **sanity **for the first time I am facing error when init, start etc. Can anyone suggest me the answer. I tried to search it everywhere but unable to find it.
Error: Error while ...
0
votes
1
answer
117
views
How do I make my sanity studio update to reflect on my nextjs app?
After setting up my sanity studio with the initial data it worked, but whenever i make a change and publish it, it still shows me my previous data in my next app. I even had to delete some data in the ...
0
votes
0
answers
138
views
Tailwindcss interfering with Sanity's PortableText/react
I'm working on a project that uses Sanity CMS rich text, and PortableText that parses through the text so it renders with proper formatting (ie. bullet points, bolded text, etc).
Wanting to learn ...
0
votes
0
answers
38
views
The layout has suddenly stopped displaying correctly in a project that uses NextJS + Sanity + Tailwind. The error: dom.js failed
I am build my first page with NextJS + Sanity + Tailwind.
Everything worked well, but on some page refresh layout was destroyed.
I can't understand the reason, I did not do any braking changes.
Does ...
0
votes
1
answer
1k
views
How to solve this error: Failed to resolve import "part:@sanity/base/schema-creator" from "schemas/schema.js"
I have the following error:
plugin:vite:import-analysis] Failed to resolve import "part:@sanity/base/schema-creator" from "schemas/schema.js". Does the file exist?
It looks like ...
0
votes
1
answer
727
views
craco' is not recognized as an internal or external command, operable program or batch file
I have downloaded a project from github and need to run it but it says craco not recognized i tried to install craco but face following error
npm WARN ERESOLVE overriding peer dependency
npm WARN ...
0
votes
0
answers
411
views
New document not being created in Sanity
Hi I am a starter to sanity, and I was planning to use it as my CMS. I created a form that the client could enter the details. The enter data then could be sent over and saved in Sanity
A brief on my ...