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

    Platform detection no longer works in 0.15 (import { Platform } from 'quasar')

    Help
    platform undefined upgrade
    2
    2
    686
    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.
    • tmladek
      tmladek last edited by

      Hi,
      I just upgraded to Quasar 0.15, and I found that my page does not render and throws the following error in the console:

        TypeError: __WEBPACK_IMPORTED_MODULE_2_quasar__.b.is is undefined
      

      I tracked it to the if (Platform.is.cordova) line, which worked fine before the upgrade. But now when I import { Platform } from 'quasar', the Platform object looks as follows (as found out with console.log):

      __installed: false
      install: install()
      length: 1
      name: "install"
      __proto__: function ()
      __proto__: Object { … }
      

      i.e. it doesn’t really look like much.

      Am I doing something wrong? This part of the docs (http://quasar-framework.org/components/platform-detection.html) has stayed the same even for the 0.15 version.

      Thanks!

      1 Reply Last reply Reply Quote 1
      • K
        kupa last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • First post
          Last post