Troubleshooting EISDIR error when building Next.js website on Windows
sudodoes it work?
Just to rule it out, can you share the relevant files where you’re embedding this in your app (
EX )?
.envfor my vars, what are you using? Also, I commented out any lines in
/post/[slug]/page.tsxthat relied on external data, since my dataset obviously wasn’t going to match yours. It may be worth it to comment out the component there and reenable line by line to narrow down what’s causing it.
what do you think could cause the error to happen?
.npmrc
thanks once again, you've been great and I will definetly be using sanity again because of how great you've been
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.