sanity-io / sanity-template-nextjs-clean

A clean Next.js template with a native authoring experience
https://template-nextjs-clean.sanity.build
174 stars 69 forks source link

sanity deploy command error #69

Open renzplaton opened 5 months ago

renzplaton commented 5 months ago

Hi, I tried to run sanity deploy but have this error

Error: [vite]: Rollup failed to resolve import "~/lib/sanity.api" from "D:/Projects/renz.dev/reminder/sanity.config.ts". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to build.rollupOptions.external

cristinallamas commented 2 months ago

got the same issue on https://github.com/sanity-io/template-nextjs-personal-website https://github.com/sanity-io/template-nextjs-personal-website/issues/284

pedroalmeida415 commented 2 months ago

https://github.com/sanity-io/template-nextjs-personal-website/issues/284#issuecomment-2372462455