Stackbit Error with Sanity Studio: Punycode Deprecation Warning

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 or internationalizedArray)
  • The issue persists even when removing these plugins from the config
  • I’ve tried clearing npm cache and reinstalling node_modules

Questions

  1. Has anyone encountered this error with Stackbit and Sanity?
  2. Is there a compatibility issue between recent versions of Stackbit and Sanity?
  3. Could this be related to how Stackbit parses the Sanity schema?
  4. Are there any workarounds to suppress the punycode warning while still allowing Stackbit to connect to Sanity?
  5. 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.