Skip to content

[Bug] context.parserServices.defineTemplateBodyVisitor is not a function #135

@harrytran998

Description

@harrytran998

When I init newest my project with the detail

root: true,
  parserOptions: {
    parser: '@typescript-eslint/parser',
    ecmaFeatures: {
      jsx: true,
      modules: true,
    },
    ecmaVersion: 2021,
    sourceType: 'module',
  },
  parser: '@typescript-eslint/parser',
  env: {
    node: true,
    browser: true,
    es6: true,
    jest: true,
  },
  globals: {
    Promise: true,
    process: true,
    console: true,
    Set: true,
    Intl: true,
  },
  plugins: [
    '@typescript-eslint',
    'vuejs-accessibility',
  ],
  extends: [
    'eslint-config-airbnb-base',
    'plugin:@typescript-eslint/recommended',
    'plugin:vuejs-accessibility/recommended',
  ],

Here is the package.json

    "@typescript-eslint/eslint-plugin": "4.22.1",
    "@typescript-eslint/parser": "4.22.1",
    "eslint": "^7.26.0",
    "eslint-config-airbnb-base": "14.2.1",
    "eslint-plugin-vuejs-accessibility": "0.6.1",

I see the error ⬇️. Hope you can take a look! Maybe you need to upgrade deps 🤔.

TypeError: Error while loading rule 'vuejs-accessibility/accessible-emoji': context.parserServices.defineTemplateBodyVisitor is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions