No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Quasar 2.0.0-beta8: $q in typescript file

    Framework
    1
    1
    158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anli last edited by

      Hi there,

      thanks a lot for the amazing work you have done for pushing quasar towards v2!

      I try to use $q in a typescript file as shown in https://next.quasar.dev/options/the-q-object#outside-of-a-vue-file

      import { Quasar } from 'quasar'
      const platform = Quasar.platform.is;
      

      That gives the error

      TS2339: Property 'platform' does not exist on type '{ install: (app: App<any>, options: Partial<QuasarPluginOptions>) => any; }'.

      What am I doing wrong? Thanks a lot for your help!

      Best regards, André

      1 Reply Last reply Reply Quote 0
      • First post
        Last post