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

TSNonNullExpression & JSXFragment: The prop value with an expression type of <type> could not be resolved. Please file issue to get this fixed immediately. #108

Closed
AriPerkkio opened this issue Dec 13, 2020 · 2 comments

Comments

@AriPerkkio
Copy link
Contributor

Hello, I'm seeing these errors while testing eslint-plugin-jsx-a11y. I believe these warnings are coming from this project.

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

https://github.com/AriPerkkio/eslint-remote-tester/runs/1542824521?check_suite_focus=true

I'm not exactly sure which code block or project is causing these. Is this info helpful enough to reproduce this or should I try to debug this closer?

Also it would be great if this error message could contain stack trace. Any ideas why it's not currently included?

if (TYPES[type] === undefined) {
// eslint-disable-next-line no-console
console.error(errorMessage(type));
return null;

@ljharb
Copy link
Member

ljharb commented Dec 15, 2020

@AriPerkkio thanks for the report! It'd be most helpful if you had code that could reproduce the TSNonNullExpression issue. I can handle the <> issue.

@ljharb ljharb closed this as completed in 57463fa Dec 15, 2020
@ljharb ljharb reopened this Dec 15, 2020
AriPerkkio added a commit to AriPerkkio/eslint-remote-tester that referenced this issue Dec 16, 2020
@AriPerkkio
Copy link
Contributor Author

Here's minimal repro:

import React from "react";

class MyLink extends React.Component {
  render() {
    return <a href={this.props.href!}>Download</a>;
  }
}

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

2 participants