-
-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
Describe the bug
When I use the Typebox resolver inside a Vite application an error is thrown I believe related to this issue
developit/microbundle#873
The error in question is
typebox.ts:14 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'substring')
at a (typebox.ts:14:24)
at Object.resolver (typebox.ts:57:9)
at _executeSchema (createFormControl.ts:382:14)
at createFormControl.ts:1051:42
at HTMLUnknownElement.callCallback2 (react-dom.development.js:4164:14)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:16)
at invokeGuardedCallback (react-dom.development.js:4277:31)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4291:25)
at executeDispatch (react-dom.development.js:9041:3)
at processDispatchQueueItemsInOrder (react-dom.development.js:9073:7)
To Reproduce
Steps to reproduce the behavior:
In the sandbox open the js console and click the submit button.
Codesandbox link (Required)
Expected behavior
The error should not happen
Metadata
Metadata
Assignees
Labels
No labels