-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
ESLint error: Unable to resolve path to module '@hookform/resolvers' #19
Comments
Thanks @minimaluminium can you try to remove node_module and install it again? I don't see the issue at my end. Mabye that will resolve the problem. |
Hi. Removed import {yupResolver} from '@hookform/resolvers/dist' |
hmmm this is strange. |
FYI @kotarella1110 |
I'm getting a compile error that was also solved by that import:
Just thought I'd leave this comment in case it's somehow related... |
thanks @actual-size which version of RHF you are using? |
@minimaluminium please provide |
@bluebill1049 RHF |
@actual-size v5 doesn't need resolver, resolver is for v6 :) |
@kotarella1110 Here it is. {
"extends": ["wesbos"],
"rules": {
"no-nested-ternary": 0,
"prettier/prettier": [
"error",
{
"semi": false,
"bracketSpacing": false,
"singleQuote": true
}
]
}
} |
use validationSchema for v5
|
Same issue and what @minimaluminium said fixed it, using react-hook-form 6.0.1. Could be related to using TypeScript? |
@mrlubos is it eslint as well? |
Thanks, heaps @snmgian I will release a patch now. |
before I close this, how did you find out it was due to that? @snmgian |
My app's build process was running and ok, and the app was also running ok. Only eslint was complaining. When I faced those errors in the past, it was related to a package not being installed properly or not being installed at all. As package.json tells where's the file that is going to be imported, my first step was to look at the package.json. Then I found the missing As |
nice @snmgian thanks for saving all of us! publish the patch now. |
Shows an ESLint error says
Unable to resolve path to module '@hookform/resolvers'
. I can use the resolver without any issue, just a lint error.The text was updated successfully, but these errors were encountered: