Skip to content
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

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

Closed
bbf6 opened this issue Oct 2, 2024 · 1 comment
Labels
area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 mode/capacitor Qv2 🔝 Quasar v2 issues

Comments

@bbf6
Copy link

bbf6 commented Oct 2, 2024

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

@bbf6 bbf6 added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Oct 2, 2024
@github-actions github-actions bot added area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite mode/capacitor labels Oct 2, 2024
@yusufkandemir
Copy link
Member

Could not reproduce the problem.

$ git clone [email protected]: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

@yusufkandemir yusufkandemir closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 mode/capacitor Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants