Skip to content

Unable to use only valibot adapter due to unnecessary imports causing build failure #671

@Deyvan

Description

@Deyvan
  • Before posting an issue, read the FAQ and search the previous issues.

Description
When importing

import { valibotClient } from "sveltekit-superforms/adapters"

the build fails with the error:
Could not resolve "effect" imported by "sveltekit-superforms". Is it installed?

My project only uses valibot, but the package imports other validator dependencies (like effect) that are not installed and not needed.

It would be great to be able to import only the required validator adapter directly, for example:

import { valibotClient } from "sveltekit-superforms/adapters/valibot"

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterRelated to validation adaptersbugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions