Closed TimGuendel closed 1 month ago
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.
I'm seeing this as well:
It's not happening in all files, just some.
TS version: ~5.3.3
typescript-eslint: ^8.2.0
eslint-plugin-unused-imports: ^4.1.3
I too am stil getting this error. This is the whole message:
[info] Using yup with vee-validate
[success] Types generated in .nuxt
Oops! Something went wrong! :(
ESLint: [9](https://github.com/ecommercedb/frontend-web-2/actions/runs/10628890600/job/29464609458?pr=610#step:4:10).9.1
TypeError: Cannot use 'in' operator to search for 'type' in undefined
Occurred while linting /home/runner/work/frontend-web-2/frontend-web-2/components/charts/ChartContainer.vue:[13](https://github.com/ecommercedb/frontend-web-2/actions/runs/10628890600/job/29464609458?pr=610#step:4:14)3
Rule: "@typescript-eslint/no-unused-vars"
at UnusedVarsVisitor.markVariableAsUsed (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@nuxt/eslint-config/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js:92:22)
at UnusedVarsVisitor.TSMappedType (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@nuxt/eslint-config/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js:235:[14](https://github.com/ecommercedb/frontend-web-2/actions/runs/10628890600/job/29464609458?pr=610#step:4:15))
at UnusedVarsVisitor.visit (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:59:21)
at UnusedVarsVisitor.visitChildren (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:46:22)
at UnusedVarsVisitor.visit (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:64:14)
at UnusedVarsVisitor.visitChildren (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:46:22)
at UnusedVarsVisitor.visit (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:64:14)
at UnusedVarsVisitor.visitChildren (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:46:[22](https://github.com/ecommercedb/frontend-web-2/actions/runs/10628890600/job/29464609458?pr=610#step:4:23))
at UnusedVarsVisitor.visit (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:64:14)
at UnusedVarsVisitor.visitChildren (/home/runner/work/frontend-web-2/frontend-web-2/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js:41:30)
Error: Process completed with exit code 2.
If it helps, this is the same error: https://github.com/typescript-eslint/typescript-eslint/issues/9719 I am still getting it when updating from "@nuxt/eslint": "^0.4.0" to "@nuxt/eslint": "^0.5.6"
Same here
Reproduction steps:
serlo/api.serlo.org
, go to the branch of this PR and run yarn
"@typescript-eslint/no-duplicate-enum-values": "off",
to .eslintrc.json
(to avoid another very strange error)yarn list:eslint
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.
So can this be reopened @antfu ? 🤔
Environment
Package
@nuxt/eslint
Reproduction
N/A
Describe the bug
After updating from 0.4.0 to 0.5.0: no-unused-vars returns
TypeError: Cannot use 'in' operator to search for 'type' in undefined.
Line 133 is always the first line after
Additional context
No response
Logs
No response