I’m encountering an error when running stackbit dev with my Astro + Sanity Studio project. The error appears as:
[cms-sanity] Error fetching Sanity schema
(node:66030) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
The project was taken from https://github.com/netlify-templates/astro-sanity-starter and I have attempted to add the translation plugins (‘sanity/document-internationalization’ and ‘sanity-plugin-internationalized-array’) from Sanity, however it appears to break Netlify Create when using them.
The issue persists even when using the same minimal Sanity configuration found in the template Netlify has created.
- The error occurs specifically when Stackbit tries to connect to Sanity
- It appears to be triggered when adding internationalization plugins (
documentInternationalization
orinternationalizedArray
) - The issue persists even when removing these plugins from the config
- I’ve tried clearing npm cache and reinstalling node_modules
Questions
- Has anyone encountered this error with Stackbit and Sanity?
- Is there a compatibility issue between recent versions of Stackbit and Sanity?
- Could this be related to how Stackbit parses the Sanity schema?
- Are there any workarounds to suppress the punycode warning while still allowing Stackbit to connect to Sanity?
- Are there any examples of using Netlify create with Sanity + astro + the translation plugins
Any help or guidance would be greatly appreciated. I’m happy to provide additional information if needed.