This morning I deployed a couple of changes to vercel and the build process worked. I made one small change (added an icon) and then re-committed. All of my builds are failing now with the error:
Failed to compile.
./node_modules/@hookform/resolvers/dist/resolvers.mjs
Attempted import error: 'set' is not exported from 'react-hook-form' (imported as 'i')
Import trace for requested module:
./node_modules/@hookform/resolvers/dist/resolvers.mjs
/node_modules/@hookform/resolvers/yup/dist/yup.mjs
/node_modules/sanity-plugin-media/lib/index.esm.js
/sanity.config.js
/app/(admin)/studio/[[...index]]/page.js
I am running Sanity Studio from the App directory.
Current version of next-sanity is 5.1.0
The failed builds coincide with the exact time that Next v13.4.8 was released.
Any suggestions other than starting from scratch again with the implementation of Studio? Anybody else experiencing this?
Jul 3, 2023, 6:13 PM