Open cosmemarins opened 1 month ago
Please try again after updating everything to the latest version.
"react-hook-form": "7.52.1",
"@hookform/resolvers": "3.9.0",
"valibot": "0.36.0"
I tried but it didn't work
The error is only on production, locally it works
It worked for me by separating the import pipe
import * as v from 'valibot'
import { pipe } from 'valibot'
...
const schema = v.object({
email: pipe(v.string('É preciso digitar um email'), v.email('Email inválido')),
password: pipe(v.string('É preciso digitar uma senha'), v.minLength(5, 'A senha deve conter no mÃnimo 5 caracteres'))
})
Thanks for the info. I will leave this open for now to see if more people encounter this problem.
I am also running into this issue (or am I missing something?). The workaround did not work for me:
or....
Dependencies versions:
"react-hook-form": "^7.52.2",
"@hookform/resolvers": "^3.9.0",
"valibot": "^0.37.0",
"@typeschema/valibot": "^0.13.5",
Update, the workaround did work by downgrading to version 0.36:
Yes, I think the problem is that some packages may use a different version of Valibot.
Some packages as in the hookform resolvers?
Could be. If more people encounter this problem, I will look into it.
Error when running npm run build or yarn build
package.json:
I tried too:
Login.tsx page