-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Error when Trying to Use Arktype Resolver #693
Error when Trying to Use Arktype Resolver #693
Comments
Thanks for letting me know! This issue should be opened in the ArkType repo instead. Happy to investigate what might be going wrong there! |
@ssalbdivad ah yes, I was wondering where to open the issue. Settled on this repository because the error message lead to be believe the issue might be that using the resolver creates another registry which somehow collides with the other one, so I assumed the problem might be one of the resolver rather than with Arktype itself. Should I open a copy in the Arktype repo? |
|
I made some changes to improve bundle size in #699. Hopefully, it will fix this issue in the next release. |
* feat(typeschema): add typeschema resolver * fix(arktype): exclude arktype from resolver bundle (#693) * perf(valibot): reduce bundle size * perf(vine): reduce bundle size * chore(deps): update dependencies * chore: migrate to Bun & Biome --------- Co-authored-by: Trent Cox <[email protected]> * Update node version (#680) * Update main.yml (#681) * perf(typeschemaResolver): save some bytes * perf(arktype): reduce bundle size * perf: reduce bundle size * chore: update deps * chore: update all deps --------- Co-authored-by: André Costa <[email protected]> Co-authored-by: Trent Cox <[email protected]> Co-authored-by: Beier (Bill) <[email protected]>
@lucaschultz Can you try with the last version (3.8.0)? |
I looked at the example you provided to reproduce the issue in Next.js and updated the |
Describe the bug
When trying to use the
arktypeResolver
the following error happens:To Reproduce
Steps to reproduce the behavior:
useForm
hook with thearktypeResolver
asresolver
.Codesandbox link (Required)
No Codesandbox link, but I created a minimal reproduction using Next.js here, but the error happened in a Vite/React app I'm working on. @ssalbdivad you might wanna have a look 😊
Expected behavior
Being able to use the provider, regardless if the project is ESM or not.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: