You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate .d.ts file failed if the .vue file used this.$route.
Here is a SFC file in my project.
<template>
<div>Hello {{foo}}</div>
</template>
<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
@Component({
name: 'Home',
})
export default class extends Vue {
public foo = 'foo'
public created() {
console.log(this.$route.path)
}
}
</script>
and this is output:
C:\Program Files\nodejs\node.exe --inspect-brk=10721 build\test.js
Debugger listening on ws://127.0.0.1:10721/f5ad21c6-c6ae-4f2c-bae0-e3e4786dc9dc
Emit Failed: c:\Users\Darkiller\Documents\ace\ace-community\src\views\Home.vue.d.ts
logger.js:16
Error: [16,22] Property '$route' does not exist on type 'default'.
The text was updated successfully, but these errors were encountered:
Generate
.d.ts
file failed if the.vue
file usedthis.$route
.Here is a
SFC
file in my project.and this is output:
The text was updated successfully, but these errors were encountered: