-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
quasar.config file configure callback should support async #17268
Comments
Hi @glorat! 👋 It looks like you provided an invalid or unsupported reproduction URL. Without a proper reproduction, your issue will have to get closed. Thank you for your collaboration. 👏 |
Per requested, I've added a StackBlitz |
Related lines:
|
would probably do the trick |
What happened?
Using the latest appvite2 whre quasar.config.ts can now be specified in typescript. Per the docs (https://quasar.dev/quasar-cli-vite/quasar-config-file#the-basics) and reality, configure can be made an async function. However the typescript definitions define
As a result, vue-tsc will fail if an async callback is defined
What did you expect to happen?
Compilation should work... the type definition should be updated to something like
declare module "quasar/wrappers" {
Reproduction URL
https://stackblitz.com/edit/stackblitz-starters-tymaet?file=quasar-project%2Fquasar.config.ts
How to reproduce?
npm init quasar
(The key selection was Typescript + Vite 5)
Modify quasar.config.ts to add async as follows
export default configure(async(ctx) => {
quasar build
now fails
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
TypeScript Support
Platforms/Browsers
Other
Quasar info output
Relevant log output
Additional context
The use of quasar.config.ts is brand new as part of app-vite2. Call this a beta test bug report!
The text was updated successfully, but these errors were encountered: