Closed serratedserenade closed 5 years ago
Same problem here. Have you found a solution ?
Same problem here. Have you found a solution ?
So, for some reason, the issue was I was using an async function in a .vue file (and this error only showed for this file, no other .vue file). It was declared as a method BUT I never declared a return type, so it looked sort of like:
Before fix:
export default Vue.extends({
...
methods: {
async someFunction() {
...
}
}
...
})
After fix:
export default Vue.extends({
...
methods: {
async someFunction(): Promise<void> {
...
}
}
...
})
Still not sure how and why would make it not crash with this error but oh well.
Issue :
Getting an unexpected string error as shown: