question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: eslint-plugin-react-hooks (4.1.2) - The prop value with an expression type of ChainExpression could not be resolved

See original GitHub issue

React version: ^16.10.2

Steps To Reproduce

  1. Install eslint-plugin-react-hooks@4.1.2
  2. Run yarn eslint src --ext=js,jsx,ts,tsx

Related issue: https://github.com/facebook/react/issues/19810#issuecomment-698470876

The current behavior

The linter is showing the following message:

The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.

It started to appear on eslint-plugin-react-hooks@4.1.2

The expected behavior

Do not show the message

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
ahsanpluspluscommented, Dec 24, 2020

This is fixed in jsx-ast-utils@3.0.0 jsx-eslint/jsx-ast-utils#102

It works well on my end. I appreciate

6reactions
junoatworkcommented, Oct 9, 2020

This is fixed in jsx-ast-utils@3.0.0 https://github.com/jsx-eslint/jsx-ast-utils/pull/102

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am getting this error: The prop value with an expression type ...
I am getting this error: The prop value with an expression type of Chain Expression could not be resolved. Please file is Failed...
Read more >
failed to load config "react-hooks" to extend from. - You.com
Failed to load config "airbnb" to extend from. Referenced from: /app/.eslintrc. This error occurred during the build time and cannot be dismissed. It...
Read more >
12 essential ESLint rules for React - LogRocket Blog
If an optional prop is not passed to a component, it will be undefined . This may be expected but can introduce bugs...
Read more >
Eslint-plugin-react NPM
However, this is not recommended, and any plugins or shareable configs that you ... If this isn't set, any propTypes wrapped in a...
Read more >
eslint-plugin-react-hooks | Yarn - Package Manager
Design simple views for each state in your application, and React will efficiently update and render just the right components when your data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found