quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
26.03k stars 3.54k forks source link

Rule '@typescript-eslint/no-unused-vars' gets triggered in a not typescript project #17553

Closed bbf6 closed 2 months ago

bbf6 commented 2 months ago

What happened?

I'm working in a vite + javascript app which I want to build as an android app. But I'm when I ran: quasar build -m capacitor -T android --ide I'm getting the error:

 Build mode............. capacitor
 Pkg quasar............. v2.17.0
 Pkg @quasar/app-vite... v1.10.0
 Pkg vite............... v2.9.18
 Debugging.............. no
 Publishing............. no
 Packaging mode......... IDE (manual)

 App •  WAIT  • Compiling of Capacitor UI with Vite in progress...

/home/my_pc/projects/piano-demo/src-capacitor/android/app/build/intermediates/assets/debug/native-bridge.js
  999:13  error  Definition for rule '@typescript-eslint/no-unused-vars' was not found  @typescript-eslint/no-unused-vars

✖ 1 problem (1 error, 0 warnings)

My current solution consist on going to the file and delete that line.

What did you expect to happen?

I would like not get a typescript warning stopping my not typescript app build.

Reproduction URL

https://github.com/bbf6/piano-demo

How to reproduce?

Install the project and try to build with:

quasar build -m capacitor -T android --ide

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Capacitor Mode

Platforms/Browsers

Android

Quasar info output

Operating System - Linux(5.15.0-122-generic) - linux/x64
NodeJs - 20.16.0

Global packages
  NPM - 10.8.1
  yarn - 1.22.19
  @quasar/cli - 2.4.1
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.17.0 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.10.0 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.12 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.5.8 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.4.5
  pinia - 2.2.2 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 2.9.18 -- Native-ESM powered web dev build tool
  eslint - 8.57.1 -- An AST-based pattern checker for JavaScript.
  electron - Not installed
  electron-packager - Not installed
  @electron/packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - 6.1.2 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/cli - 6.1.2 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/android - 6.1.2 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

Build mode............. capacitor
 Pkg quasar............. v2.17.0
 Pkg @quasar/app-vite... v1.10.0
 Pkg vite............... v2.9.18
 Debugging.............. no
 Publishing............. no
 Packaging mode......... IDE (manual)

 App •  WAIT  • Compiling of Capacitor UI with Vite in progress...

/home/alex/projects/piano-demo/src-capacitor/android/app/build/intermediates/assets/debug/native-bridge.js
  999:13  error  Definition for rule '@typescript-eslint/no-unused-vars' was not found  @typescript-eslint/no-unused-vars

✖ 1 problem (1 error, 0 warnings)

Additional context

No response

yusufkandemir commented 2 months ago

Could not reproduce the problem.

$ git clone git@github.com:bbf6/piano-demo.git
$ cd piano-demo
$ npm i
$ quasar build -m capacitor -T android --ide 

image

There is no reference to that rule in app-vite, quasar, or @quasar/extras either. image