The prop value with an expression type of OptionalMemberExpression could not be resolved
See original GitHub issueI use @babel/plugin-proposal-optional-chaining
like this:
<div href={data?.href} />
I found only href
will throw error. Other props will not throw error, like this:
<div test={data?.test} />
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
The prop value with an expression type of ... - GitHub
The prop value with an expression type of OptionalMemberExpression could not be resolved. Please file issue to get this fixed immediately.
Read more >The prop value with an expression type of ... - Bountysource
The prop value with an expression type of OptionalMemberExpression could not be resolved.
Read more >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 >jsx-ast-utils | Yarn - Package Manager
spreadStrict - automatically set to true . This means if spread operator exists in props, it will assume the prop you are looking...
Read more >periode-6-reactjs - node_modules - jsx-ast-utils ... - GitLab
(fix) Fix getLiteralPropValue for TS-specific node types. ... JSXElement to expression types to handle recursively extracting prop value.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Working on it now. I need to update all the dev dependencies to get there 😃
@HsuTing , Fixed in version v2.2.1. This will log an error in the console, but it will no longer throw.