Artiom Neganov

Results 189 comments of Artiom Neganov

Update. It finally failed in the end due to the limitation of TS. See: https://github.com/microsoft/TypeScript/issues/34933#issuecomment-1696519995 I believe ZodUnion shouldn't be used for tasks like this one.

More detailed trace back: **main** (yarn): `no error` **13.0.22** (yarn): `[error] TypeError: Cannot read properties of undefined (reading 'split')` **13.0.21** (yarn): `[error] TypeError: Cannot read properties of undefined (reading 'split')`...

@Argeento I expect you shouldn't use `^` before the version specifier, as `npm` will update it back to `13.0.23`. Use the specific version like `"13.0.16"` (this one works).

@js2me Any updates on this? The issue persist in the latest `13.0.23` version.

One workaround I found so far is to use `setTimeout()` inside the `useEffect()`: ```ts useEffect(() => { setTimeout(() => { setValue("foo", "useEffectVal"); }) }, [setValue]); ``` Checkout this sandbox: https://codesandbox.io/p/sandbox/rhf-watch-not-working-forked-kkpt96?workspaceId=ws_NT8YX4jqcz3FrmwfaKcnT5

**Node LTS v.20 here** I run tests. For the following file tree: ``` src/ commands.test.js ``` this works: ```sh $ node --test src # is successfully executing the `src/commands.test.js` tests...