-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
The prop value with an expression type of TSSatisfiesExpression could not be resolved. #131
Comments
Thanks! I believe that's pretty new in TS. Can you provide some code that uses |
Same problem for me for a couple of months, sorry I didn't take the time to report it earlier. Here is an example of a code where eslint complain: type FormData = {
name: string;
}
function Input() {
return <input type="text" name={"name" satsifies keyof FormData} />
} It seems that it gives the error when a prop mix the expected type with a satisfies in it. |
I’m getting the same issue here, we also have some inputs we want to make sure are correct: We make extensive use of satisfies and the only places we see this issue are the places where we use this |
Did anyone find a workaround? does TS have any other keyword that can be used instead of |
The fix for this in this package isn’t hard, but getting the tests to run on a new enough TS version so it can be tested is, unfortunately. @mifi there’s no way to have the safety of that TS feature without using the feature, i believe. |
Receiving the error:
The prop value with an expression type of TSSatisfiesExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.
During local builds of NextJS application.
The text was updated successfully, but these errors were encountered: