Skip to content

Valibot toTypedSchema throws type error Argument of type ObjectSchema is not assignable to parameter of type BaseSchema #4951

@kirbytwister

Description

@kirbytwister

What happened?

Code snippet directly copied from documentation causes type error on the screenshot.
Package versions:

"@vee-validate/valibot": "^4.14.7",
"valibot": "^1.0.0-beta.8",
"vee-validate": "^4.14.7",

image

Reproduction steps

No response

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/vee-validate-v4-radio-ssadza?file=src%2FApp.vue (see the console output)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions