Maiquu / nuxt-quasar

Quasar Module for Nuxt (Unofficial)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] useQuasar - Could not find a declaration file for module

ervansanjaya opened this issue · comments

commented

Checks

  • I have searched the existing issues for a similar bug and it does not exist!

Environment


  • Operating System: Windows_NT
  • Node Version: v18.15.0
  • Nuxt Version: 3.4.0
  • Nitro Version: 2.3.3
  • Package Manager: pnpm@8.3.1
  • Builder: vite
  • User Config: modules, experimental, css, colorMode, nitro, app, pwa, devtools, quasar,
    i18n
  • Runtime Modules: @vueuse/nuxt@9.13.0, @unocss/nuxt@0.51.4, @pinia/nuxt@0.4.8, @nuxtjs/color-mode@3.2.0, @vite-pwa/nuxt@0.0.7, nuxt-quasar-ui@1.6.1, @nuxtjs/i18n@8.0.0-beta.11
  • Build Modules: -

Quasar version

2.11.10

Browsers

Google Chrome

Description

Receiving that kind of warning

Reproduction steps

1. Define `import useQuasar from 'quasar/src/composables/use-quasar.js'`
2. Receive a warning `Could not find a declaration file for module 'quasar/src/composables/use-quasar.js'.`

Screenshots

image

Logs

No response

Description

Why I use this function because I want to utilize Quasar's $q.notify() function as shown below.

image

The function works just fine but I'm seeing a warning on this.

Thanks

---- EDIT -----

I changed to import { useQuasar } from 'quasar' and the error disappears
Thanks