Hi all, I've just setup a new Sanity/Astro project by following the 'Getting Started' instructions as shown in the Sanity dashboard. Dev servers 3333 and 4321 are working fine but after deploying my Sanity Studio, I'm seeing the following error message in Google Chrome:
Uncaught error: The requested module 'react' does not provide an export named 'useMemo'
https://astroheadless.sanity.studio/vendor/styled-components/index-D6hUPlVp.mjs:1:29
SyntaxError: The requested module 'react' does not provide an export named 'useMemo'
The error can be viewed live here -
https://astroheadless.sanity.studio/
I've noticed that package.json in my Sanity studio directory is showing react and react dom dependencies v18.2.0, whereas package.json in my Astro project directory is showing react and react dom v19.0.0. Is this correct?
This is my first time setting up Sanity integration for Astro and I've no prior experience using React.
Is anyone here able to help?
Thanks, Adam