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.

The prop value with an expression type of OptionalMemberExpression could not be resolved

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jessebeachcommented, Mar 17, 2019

Working on it now. I need to update all the dev dependencies to get there 😃

2reactions
jessebeachcommented, Jul 1, 2019

@HsuTing , Fixed in version v2.2.1. This will log an error in the console, but it will no longer throw.

Read more comments on GitHub >

github_iconTop 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 >

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