felte icon indicating copy to clipboard operation
felte copied to clipboard

Solid use:form directive showing an error in VSCode?

Open Blankeos opened this issue 1 year ago • 0 comments
trafficstars

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

Blankeos avatar Apr 30 '24 15:04 Blankeos