Skip to content
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 JSXEmptyExpression could not be resolved #128

Open
Ali-Waseer opened this issue Jun 3, 2023 · 7 comments

Comments

@Ali-Waseer
Copy link

I am facing an issue while I building my react project.
The prop value with an expression type of JSXEmptyExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately

@ljharb
Copy link
Member

ljharb commented Jun 3, 2023

Do you know what code is causing this error?

@Ali-Waseer
Copy link
Author

Ali-Waseer commented Jun 3, 2023 via email

@ljharb
Copy link
Member

ljharb commented Jun 3, 2023

If you’re working on the same code with the same dep graph, you should get the same results.

i can’t help you fix your problem without more information.

@Ali-Waseer
Copy link
Author

Ali-Waseer commented Jun 3, 2023 via email

@ljharb
Copy link
Member

ljharb commented Jun 3, 2023

The code that’s causing the linting error, and confirmation that you’re using the latest version.

@happymvp
Copy link

@ljharb I got the issue from this empty onKeyDown handler in my case
<div onClick={handleCount} onKeyDown={} role="button" tabIndex={0}> {count} </div>

@ljharb
Copy link
Member

ljharb commented Nov 21, 2024

@happymvp thanks - that's invalid jsx tho, i believe, so it shouldn't even parse. what eslint parser are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants