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 without the router

    Framework
    2
    3
    404
    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
      Arto last edited by Arto

      I wonder if it is possible to use Quasar/latest without the router?
      I put together a simple app with only one view, and had no need for the router. Problem is that with every build, Quasar treats router as a dependency and throws. I can hack around it through modifying the generator.js , but its obviously very dirty.
      I haven’t tried, but imagine that mocking the router could work. But this is also too dirty for such a simple task.

      Is there maybe a way to disable the router as a dependency?

      1 Reply Last reply Reply Quote 0
      • A
        Arto last edited by Arto

        Turned out that mocking is enough to cheat Quasar. It senses that something is wrong

        "export 'default' (imported as 'createRouter') was not found in 'app/src/router/index'
        

        …but compiles. And yes, still too dirty.

        1 Reply Last reply Reply Quote 0
        • CWoodman
          CWoodman last edited by

          I agree - there should be an option to not use router.

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