FearTheC / ftc-discord-platadmin-front

0 stars 1 forks source link

Property '$route' does not exist on type '{ layout(): any; }'. #6

Open QBonaventure opened 6 years ago

QBonaventure commented 6 years ago

This error is raised in App.vue:20 on any request. AFAIK, this variable should exist upon using VueRouter. Although it works fine, well... it should be fixed !

[tsl] ERROR in .\src\App.vue.ts(20,26)
      TS2339: Property '$route' does not exist on type '{ layout(): any; }'.
QBonaventure commented 6 years ago

Actually fixed by #7 ... Simply instantiated "Router" class instead of the right one : "VueRouter".

QBonaventure commented 6 years ago

The problem persists. And it prevent automatic reloading on code updates while developing!