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

    TS2717: Subsequent property declarations must have the same type. Property '$router' must be of type 'VueRouter', but here has type 'VueRouter'.

    Help
    2
    7
    989
    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.
    • shiba
      shiba last edited by

      Hi, there.

      I faced a error that can’t resolve and can’t build.

      If I execute a command bellow, it returns error.

      quasar build -m pwa
      

      quasar 1.15.6
      quasar/app 2.0.9
      vue 2.6
      vue-router 3.5.1
      typescript 4.2.3
      ↑ Is this the problem?

      .../node_modules/vue-router/types/vue.d.ts
      ERROR in .../node_modules/vue-router/types/vue.d.ts(10,5):
      TS2717: Subsequent property declarations must have the same type.  Property '$router' must be of type 'VueRouter', but here has type 'VueRouter'.
      .../node_modules/vue-router/types/vue.d.ts
      ERROR in .../node_modules/vue-router/types/vue.d.ts(17,5):
      TS2717: Subsequent property declarations must have the same type.  Property 'router' must be of type 'VueRouter | undefined', but here has type 'VueRouter | undefined'.
      

      Please help me !!

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @shiba last edited by

        @shiba

        So it runs fine?

        anyways I don’t know anything about TS but this post looks a lot like your issue:
        https://github.com/ClickerMonkey/vuex-typescript-interface/issues/5

        shiba 1 Reply Last reply Reply Quote 0
        • shiba
          shiba @dobbel last edited by

          @dobbel
          Thank you for reply 🙏🏻

          I couldn’t resolve so I’ve had two errors.
          However I could released my app.
          Maybe I can release it even if I ignore this problem.

          By the way, Do you know how to close this post?

          Thanks.
          I will check your recommended page.

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @shiba last edited by

            @shiba

            Let me know if you where able to fix the problem.

            shiba 1 Reply Last reply Reply Quote 0
            • shiba
              shiba @dobbel last edited by

              @dobbel
              Yes, Thank you so mach.
              I resolved this problem.

              dobbel 1 Reply Last reply Reply Quote 0
              • dobbel
                dobbel @shiba last edited by

                @shiba

                Great! Could you post what you did to fix the issue?

                shiba 1 Reply Last reply Reply Quote 0
                • shiba
                  shiba @dobbel last edited by

                  @dobbel
                  Oh, I’m sorry.
                  To be exact, I’ve not fixed the problem.
                  I did not need to fix.

                  I did not need to fix.
                  I’m not sure why, however I deployed my app.

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