Skip to content

4.0.0 Fails to Detect Undefined Functions/Variables in Vue with ESLint #151

Open
@hellokvn

Description

@hellokvn

Environment

  • Vue version: ^3.5.13
  • Vite version: ^6.2.4
  • VSC version: Latest stable
  • OS: macOS 14.0 (Sonoma)
  • Hardware: MacBook M1
  • Node version: 22.x.x
  • PNPM version: 10.6.3
  • vue-facing-decorator Version: 4.0.0 (issue present), 3.0.4 (issue absent)
  • ESLint version: 9.22.0
  • eslint-plugin-vue version: 10.0.0
  • Volar/Vue Official VSC extension: 2.2.10

When using vue-facing-decorator version 4.0.0 in a Vue 3 TypeScript project within a PNPM workspace mono repository, ESLint fails to detect undefined functions or variables. I did not test it on a regular single repository. ESLint config is untouched and generated by Vue CLI.

Some example code:

<template>
  <div @click="thisFunctionDoesNotExist">Test</div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';

@Component
export default class TestComponent extends Vue {}
</script>

Screenshots

Description: Neither the function nor the variable does exist.

Expected behavior on 3.0.4:

Image

Wrong behavior on 4.0.0:

Image

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