Build error using media-plugin #240
klasnasman
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm using Astro with Sanity and the media plugin, and trying to deploy to Netlify. But I'm getting a build error when using the media plugin.
11:07:20 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
11:07:18 AM: sanity.config.ts:16:5 - error ts(2719): Type 'import("/opt/build/repo/node_modules/sanity/lib/index").PluginOptions' is not assignable to type 'import("/opt/build/repo/node_modules/sanity/lib/index").PluginOptions'. Two different types with this name exist, but they are unrelated.
11:07:18 AM: Types of property 'schema' are incompatible.
11:07:18 AM: 16 media(),
Has anyone else seen this and know how to fix it?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions