Skip to content

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

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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