You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oops! Something went wrong! :(
ESLint: 8.54.0
TypeError: Cannot read properties of undefined (reading 'length')
Occurred while linting ~/idea2app/IdeaMall/mini-app/src/store/Base.ts:9
Rule: "@typescript-eslint/no-useless-constructor"
at ~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/@typescript-eslint [email protected]_@typescript-eslint [email protected][email protected][email protected]/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js:30:26
at Array.some (<anonymous>)
at checkParams (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/@typescript-eslint [email protected]_@typescript-eslint [email protected][email protected][email protected]/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js:29:31)
at MethodDefinition (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/@typescript-eslint [email protected]_@typescript-eslint [email protected][email protected][email protected]/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js:52:21)
at ruleErrorHandler (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1091:28)
at ~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:803:23)
at ~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1126:32
at Array.forEach (<anonymous>)
at runRules (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1121:15)
at Linter._verifyWithoutProcessors (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1370:31)
at Linter._verifyWithConfigArray (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1822:21)
at Linter.verify (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1452:65)
at Linter.verifyAndFix (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:2083:29)
at verifyText (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/cli-engine/cli-engine.js:254:48)
at CLIEngine.executeOnFiles (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/cli-engine/cli-engine.js:834:28)
at ESLint.lintFiles (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/eslint/eslint.js:551:23)
at Object.execute (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/cli.js:402:36)
at async main (~/idea2app/IdeaMall/mini-app/node_modules/.pnpm/[email protected]/node_modules/eslint/bin/eslint.js:152:22)
相关平台
H5
浏览器版本: Chrome 119
使用框架: React
复现步骤
git clone
IdeaMall/mini-app#45 后,在项目根目录执行:期望结果
ESLint 命令不报错
实际结果
环境信息
原因分析
上游库维护者已分析出症结:
typescript-eslint/typescript-eslint#7996 (comment)
以下依赖需要更新:
taro/packages/eslint-config-taro/package.json
Line 28 in 1c89b0c
taro/packages/eslint-config-taro/index.js
Line 18 in 1c89b0c
The text was updated successfully, but these errors were encountered: