Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hellokvn opened this issue May 18, 2025 · 1 comment
Open

Comments

@hellokvn
Copy link

hellokvn commented May 18, 2025

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
@ruojianll
Copy link
Contributor

Try if it has been fixed in v4.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants