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

frameDebounce() is missing a type declaration #13163

Closed
flesser opened this issue Apr 13, 2022 · 0 comments · Fixed by #13191
Closed

frameDebounce() is missing a type declaration #13163

flesser opened this issue Apr 13, 2022 · 0 comments · Fixed by #13191
Assignees
Labels
area/typescript bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@flesser
Copy link
Contributor

flesser commented Apr 13, 2022

What happened?

When using Typescript, I get the error message "Module '"quasar"' has no exported member 'frameDebounce'" (from Vetur, I guess?):
image

I was able to reproduce it in Codesandbox example:
image

However, as can be seen in the example, the (Javascript) function actually can be resolved. So I guess it's "just" a Typescript thing. Searching around, I came across vuejs/vuex#1736 which looks like a very similar type of issue.

What did you expect to happen?

Being able to import { frameDebounce } from 'quasar'; within <script lang="ts"> without any editor warnings.

Reproduction URL

https://codesandbox.io/s/framedebounce-ts-bug-q2phhk?file=/src/components/BrokenTypescript.vue

How to reproduce?

<script lang="ts">
import { frameDebounce } from 'quasar';
</script>

Flavour

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

Areas

TypeScript Support

Platforms/Browsers

No response

Quasar info output

Operating System - Linux(5.10.102.1-microsoft-standard-WSL2) - linux/x64
NodeJs - 16.14.2

Global packages
  NPM - 8.6.0
  yarn - Not installed
  @quasar/cli - 1.3.2
  @quasar/icongenie - 2.4.0
  cordova - Not installed

Important local packages
  quasar - 2.6.6 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.0.0-beta.14 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.13.5 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.32 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.0.14
  pinia - Not installed
  vuex - Not installed
  vite - 2.9.1 -- Native-ESM powered web dev build tool
  eslint - 8.13.0 -- An AST-based pattern checker for JavaScript.
  electron - 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 - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

No response

Additional context

No response

@flesser flesser added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Apr 13, 2022
@github-actions github-actions bot added area/typescript bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Apr 13, 2022
@yusufkandemir yusufkandemir added bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. and removed bug/1-repro-available A reproduction is available and needs to be confirmed. labels Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/typescript bug/2-confirmed We have reproduce the problem and confirmed that this is a bug. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants