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

no-multiple-resolved rule in ESLint 9.3.0: TypeError: Cannot read properties of undefined (reading 'map') #472

Closed
zloirock opened this issue May 28, 2024 · 2 comments · Fixed by #478
Labels

Comments

@zloirock
Copy link
Contributor

zloirock commented May 28, 2024

After updating eslint to 9 (9.3.0), [email protected] cause:

Oops! Something went wrong! :(

ESLint: 9.3.0

TypeError: Cannot read properties of undefined (reading 'map')
Occurred while linting /***/core-js/scripts/usage/usage.mjs:34
Rule: "promise/no-multiple-resolved"
    at CodePathInfo.getCurrentSegmentInfos (/***/core-js/tests/eslint/node_modules/eslint-plugin-promise/rules/no-multiple-resolved.js:147:38)
    at CallExpression > Identifier.callee (/***/core-js/tests/eslint/node_modules/eslint-plugin-promise/rules/no-multiple-resolved.js:464:48)
    at ruleErrorHandler (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/linter.js:1115:48)
    at /***/core-js/tests/eslint/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
    at runRules (/***/core-js/tests/eslint/node_modules/eslint/lib/linter/linter.js:1154:40)

image

The error present only in promise/no-multiple-resolved rule.

@zloirock
Copy link
Contributor Author

zloirock commented May 28, 2024

Copy link
Contributor

github-actions bot commented Jul 1, 2024

🎉 This issue has been resolved in version 6.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant