-
-
Notifications
You must be signed in to change notification settings - Fork 203
Description
Describe the bug
When trying to use the arktypeResolver the following error happens:
Error: Tried to initialize an $ark registry but one already existed.
This probably means you are either depending on multiple versions of an arktype package,
or importing the same package from both ESM and CJS.
Review package.json versions across your repo to ensure consistency.
To Reproduce
Steps to reproduce the behavior:
- Call the
useFormhook with thearktypeResolverasresolver.
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):
- OS: macOS
- Browser: Chrome
- Version: 125.0.6422.114