-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Nextjs build Failed #352
Comments
Can you send me your schema? But it seems like this is an external problem. |
I've got similar issue when trying to use valibot inside of a server action for validating form submission with Next.js app router. The issue happens when trying to build the next.js application. Code looks something like this: 'use server'
import { object, parse, string } from 'valibot'
const schema = object({
name: string(),
})
export const submit = async (formData: FormData) => {
const parsedFormData = parse(schema, {
name: formData.get('name'),
})
// Rest of the code
} I get the error when building:
|
Something seems to be wrong here. A |
When I used "valibot": "^0.19.0" it's worked |
What version of TypeScript are you using? Tip: You can remove |
I use Thank you :) |
Checking validity of types .Failed to compile.
./node_modules/valibot/dist/index.d.ts:1980:27
Type error: Type parameter declaration expected.
1978 | * @returns A picklist schema.
1979 | */
I use
"valibot": "^0.25.0",
The text was updated successfully, but these errors were encountered: