Desk tool crashes and throws TypeError when editing schema content
Israeltheminer opened this issue · comments
Describe the bug
The sanity studio is deployed to localhost:3333 successfully with the included schemas visible, but on trying to edit the content of the schema it throws this error. TypeError: (0 , _validation2.validation) is not a function
PS.
I have tried reinstalling @sanity/cli multiple times, and even tried using the default e-commerce and blog-post schemas and this still also throws this same error so my schema is of no consequence to the error if the default produced the same error
Which versions of Sanity are you using?
@sanity/cli 2.34.0 (up to date)
@sanity/base 2.34.0 (up to date)
@sanity/core 2.34.0 (up to date)
@sanity/default-layout 2.34.0 (up to date)
@sanity/default-login 2.34.0 (up to date)
@sanity/desk-tool 2.34.0 (up to date)
@sanity/eslint-config-studio 2.0.0 (up to date)
@sanity/vision 2.34.0 (up to date)
What operating system are you using?
Windows 10 || 64bit
Which versions of Node.js / npm are you running?
npm - 8.6.0
Node - v18.0.0
make sure your using the latest version and use npm run dev to run sanity and reload your web app
To solve this manually delete your node_modules file, clear your npm cache, delete your package.lock.json, and npm the install from scratch