lingui / eslint-plugin

Set of ESLint rules for Lingui projects
https://www.npmjs.com/package/eslint-plugin-lingui
MIT License
21 stars 7 forks source link

Rule lingui/no-unlocalized-strings: TypeError: Cannot destructure property 'esTreeNodeToTSNodeMap' of 'parserServices' as it is undefined. #46

Open Jack-Works opened 1 month ago

Jack-Works commented 1 month ago

This error only happens for lingui/no-unlocalized-strings, other rules are fine.

TypeError: Error while loading rule 'lingui/no-unlocalized-strings': Cannot destructure property 'esTreeNodeToTSNodeMap' of 'parserServices' as it is undefined.
Occurred while linting ...
    at Object.create (eslint-plugin-lingui/lib/rules/no-unlocalized-strings.js:136:17)
    at createRuleListeners (eslint/lib/linter/linter.js:977:21)
    at eslint/lib/linter/linter.js:1108:84
    at Array.forEach (<anonymous>)
    at runRules (eslint/lib/linter/linter.js:1039:34)
    at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (eslint/lib/linter/linter.js:1947:31)
    at Linter._verifyWithFlatConfigArray (eslint/lib/linter/linter.js:2086:21)
    at Linter.verify (eslint/lib/linter/linter.js:1547:61)
    at Linter.verifyAndFix (eslint/lib/linter/linter.js:2323:29)
    at verifyText (eslint/lib/eslint/eslint.js:498:48)
itsarijitray commented 4 weeks ago

@Jack-Works @andrii-bodnar Can I give it a shot?

andrii-bodnar commented 4 weeks ago

@itsarijitray sure, thank you!