Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Blankeos opened this issue Apr 30, 2024 · 0 comments
Open

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

Blankeos opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Blankeos
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants