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
I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution.
I have tried restarting my IDE and the issue persists.
I have updated to the latest version of the packages.
What version of ESLint are you using?
9.8.0
What version of eslint-plugin-vue and vue-eslint-parser are you using?
I get the error TypeError: Error while loading rule 'vuetify/no-deprecated-classes': Cannot read properties of undefined (reading 'defineTemplateBodyVisitor')
i.e. context.parserServices in each rule is undefined (I threw in a console.log() to verify)
However context.getSourceCode().parserServices does have a proper parserServices object complete with a defineTemplateBodyVisitor etc.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.8.0
What version of
eslint-plugin-vue
andvue-eslint-parser
are you using?What did you do?
Configuration
What did you expect to happen?
When I run
npx eslint .
there should be no errorsWhat actually happened?
I get the error
TypeError: Error while loading rule 'vuetify/no-deprecated-classes': Cannot read properties of undefined (reading 'defineTemplateBodyVisitor')
i.e.
context.parserServices
in each rule is undefined (I threw in aconsole.log()
to verify)However
context.getSourceCode().parserServices
does have a properparserServices
object complete with adefineTemplateBodyVisitor
etc.Link to Minimal Reproducible Example
https://github.com/vuetifyjs/eslint-plugin-vuetify
Additional comments
I am attempting to help the vuetify team debug this.
It seems that this was working fine with eslint 8.x and is only and issue with 9.x
context.getSourceCode().parserServices
returns the followingBut that seems never to be getting injected directly into the
context
parameter passed to thecreate
function. Which is what the expected behavior seems to be based on https://www.npmjs.com/package/vue-eslint-parser#-usage-for-custom-rules--pluginsThe text was updated successfully, but these errors were encountered: