I am trying to use Netlify to deploy my Astro & Sanity site.
I have followed the docs and added the required build settings, and the build deploys without error.
However, when accessing the site I receive an error.
SyntaxError - Named export 'LIST_NEST_MODE_HTML' not found. The requested module '@portabletext/toolkit' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from '@portabletext/toolkit'; const { isPortableTextToolkitList, isPortableTextListItemBlock, isPortableTextToolkitSpan, isPortableTextBlock, isPortableTextToolkitTextNode, nestLists, LIST_NEST_MODE_HTML, buildMarksTree } = pkg;
Is there a netlify config I am missing?