TS2717: Subsequent property declarations must have the same type. Property '$router' must be of type 'VueRouter', but here has type 'VueRouter'.
-
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 !!
-
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 -
@dobbel
Thank you for replyI 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. -
Let me know if you where able to fix the problem.
-
@dobbel
Yes, Thank you so mach.
I resolved this problem. -
Great! Could you post what you did to fix the issue?
-
@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.