Skip to content

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

Description

@Blankeos

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

  • OS: 14.4.1 (23E224) - Sonoma
  • Browser: Arc 1.40.1 (49250)
  • Version: @felte/reporter-solid@1.2.10, @felte/solid@1.2.13

To reproduce

No response

Small reproduction example

No response

Screenshots

Error

image

Additional context

No response

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions