Skip to content

I got the warnning state_referenced_locally when using superForm #667

@jijiseong

Description

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

Description
A clear and concise description of what the bug is, and, unless obvious, what you expected instead.

<script lang="ts">

  import type { PageData } from "./$types";

  type Props = {
      data: PageData;
    };
  
  let { data }: Props = $props();

  const form = superForm(data.form, {
    validators: zod4Client(recommendSchema)
  });
</script>
Image

how resolve this warnning? Is it superForm internal error?

If applicable, a MRE
Use this template project to create a minimal reproducible example that you can link to here: https://sveltelab.dev/github.com/ciscoheat/superforms-examples/tree/zod (right click to open in a new tab)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions