<script lang="ts">
import SuperDebug from 'sveltekit-superforms/client/SuperDebug.svelte';
import type { PageData } from './$types';
import { superForm } from 'sveltekit-superforms/client';
export let data: PageData;
// create the form on the client-side by destructuring the 'form' from superForm()
const { form, message, errors, enhance } = superForm(data.form); // form is a store
console.log($errors);
</script>
<script lang="ts">
import SuperDebug from 'sveltekit-superforms/client/SuperDebug.svelte';
import type { PageData } from './$types';
import { superForm } from 'sveltekit-superforms/client';
export let data: PageData;
// create the form on the client-side by destructuring the 'form' from superForm()
const { form, message, errors, enhance } = superForm(data.form); // form is a store
console.log($errors);
</script>