The prop value with an expression type of `TSPrivateIdentifier` could not be resolved.
See original GitHub issueI’m seeing some logging related to TSPrivateIdentifier
while testing eslint-plugin-jsx-a11y
.
https://github.com/AriPerkkio/eslint-remote-tester/actions/workflows/lint-eslint-plugin-jsx-a11y.yml
2021-09-09T05:45:12.5777054Z The prop value with an expression type of TSPrivateIdentifier could not be resolved. Please file issue to get this fixed immediately.
2021-09-09T05:45:13.4113986Z The prop value with an expression type of TSPrivateIdentifier could not be resolved. Please file issue to get this fixed immediately.
Minimal repro:
import React from "react";
export class MyLink extends React.Component {
#urls = { submit: "/submit" };
render() {
return <a href={this.#urls.submit}>Submit</a>;
}
}
{
"root": true,
"env": {
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "16.13.1"
}
},
"extends": ["plugin:jsx-a11y/recommended"]
}
{
"scripts": {
"lint": "eslint index.tsx"
},
"devDependencies": {
"@typescript-eslint/parser": "^4.31.1",
"eslint": "7.32.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "7.21.5",
"react": "16",
"typescript": "^4.4.3"
}
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 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 SequenceExpression could not be resolved. Please file issue to get this fixed immediately. #95.
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 >this - JavaScript | MDN
In most cases, the value of this is determined by how a function is called (runtime binding). It can't be set by assignment...
Read more >Documentation - Advanced Types - TypeScript
Union types are useful for modeling situations when values can overlap in the types they can take ... Property 'fly' does not exist...
Read more >Google JavaScript Style Guide
That is, while the examples are in Google Style, they may not illustrate the ... imported file name and follow the rules in...
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
Yup - v5 of ts-eslint will support it fully, but that won’t be released until ESLint v8 releases (as we’re waiting until all of the v8 breaking changes have settled so we don’t have to do multiple majors).
Also (as you mentioned) ESLint v8 will also come with support private fields.
Relevant issue is typescript-eslint/typescript-eslint#3430
oof, why would they use a different node type for a standard thing? thanks, i’ll take a look