Skip to content
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

Appears to no longer be compatible with arktype as of [email protected] #510

Closed
fnimick opened this issue Nov 14, 2024 · 0 comments
Closed
Labels
adapter Related to validation adapters next Will be implemented in the next release

Comments

@fnimick
Copy link

fnimick commented Nov 14, 2024

const testObj = type({ foo: "'foo'" });

superValidate({ foo: null }, arktype(testObj, { defaults: { foo: "foo" } }));

This now triggers:

file://project/node_modules/@ark/util/out/path.js:38
        this.push(...items);
                     ^

TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a function
    at new ReadonlyPath (file://project/node_modules/@ark/util/out/path.js:38:14)
    at ReadonlyPath.filter (<anonymous>)
    at Module.mapErrors (project/node_modules/sveltekit-superforms/dist/errors.js:55:64)
    at Module.superValidate (project/node_modules/sveltekit-superforms/dist/superValidate.js:41:69)
  System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 136.84 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.asdf/installs/nodejs/20.13.1/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 10.5.2 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 9.7.0 - ~/.asdf/shims/pnpm
  npmPackages:
    @ark/schema:  0.23.0 
    @ark/util:  0.23.0 
    arktype: ^2.0.0-rc.12 => 2.0.0-rc.23 
    sveltekit-superforms: ^2.20.0 => 2.20.0 
    typescript: ^5.5.4 => 5.6.3 
@fnimick fnimick added the bug Something isn't working label Nov 14, 2024
@ciscoheat ciscoheat added next Will be implemented in the next release adapter Related to validation adapters and removed bug Something isn't working labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter Related to validation adapters next Will be implemented in the next release
Projects
None yet
Development

No branches or pull requests

2 participants