-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime error when building and starting sanity studio locally #243
Comments
Which pnpm version you have? |
Please update the repo with standard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL;DR: importing
@sanity-typed/types
functions rather than their official Sanity equivalents causes a runtime error when locally browsing the built version of the studio.Hello, I've run into a problem I can't meaningfully debug myself, so I created a minimal repo for reproducing the issue.
https://github.com/eFFeeMMe/sanity-typed-types-runtime-error
git clone git@github.com:eFFeeMMe/sanity-typed-types-runtime-error.git && cd sanity-typed-types-runtime-error
pnpm build && pnpm start
To check whether this is a fluke:
git checkout without-sanity-typed-types && pnpm build && pnpm start
For clarity, the only difference between
main
andwithout-sanity-typed-types
is importing Sanity defaults rather than their@sanity-typed/types
equivalents.I'll be honest, I've looked at the code but I've no idea how using your
defineField
instead of Sanity's default could provoke such a runtime error.Either way, thanks for the library 🙇
The text was updated successfully, but these errors were encountered: