pablo-abc / felte

An extensible form library for Svelte, Solid and React
https://felte.dev
MIT License
1.01k stars 43 forks source link

Solid use:form directive showing an error in VSCode? #291

Open Blankeos opened 5 months ago

Blankeos commented 5 months ago

Describe the bug

I don't think use:* directive in Solid is working. Not sure what's wrong.

Whole code

import { createForm } from "@felte/solid";

export default function Register() {
  const { form } = createForm({
    onSubmit: async (values) => {
      /* call to an api */
    },
  });
  function test() {}

  return (
    <main class="text-center mx-auto text-gray-700 p-4">
      <h1>Register</h1>

      <form use:form>
        <input type="text" name="email" />
        <input type="password" name="password" />
        <button type="submit">Sign In</button>
      </form>
    </main>
  );
}

Which package/s are you using?

@felte/solid (SolidJS), @felte/reporter-solid

Environment

To reproduce

No response

Small reproduction example

No response

Screenshots

Error

image

Additional context

No response