I've migrated react-hook-forms
from v.6 to v.7.
After changing the register
method, as pointed out in the migration guide, the following error occurs:
Argument of type 'string' is not assignable to parameter of type '
${string}
|${string}.${string}
|${string}.${number}
'. TS2345
Register expects a string name, which I provide correctly with a param which for sure is a string, but anyhow it doesn't accept my parameter if I don't pass exactly string.
Anyone with a similar issue or any idea is highly appreciated. Thanks in advance!
register
method?