felte
felte copied to clipboard
Solid use:form directive showing an error in VSCode?
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
- OS: 14.4.1 (23E224) - Sonoma
- Browser: Arc 1.40.1 (49250)
- Version:
@felte/[email protected],@felte/[email protected]
To reproduce
No response
Small reproduction example
No response
Screenshots
Error
Additional context
No response