Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now if you use await,volar can't throw a error that you should use async in the function #1753

Closed
jianxingxuejian opened this issue Aug 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jianxingxuejian
Copy link

<script setup lang="ts">
  async function test1() {
    await do something
  }
  function test2(){
    await test1()
  }
</script>
@CressZZ
Copy link

CressZZ commented Aug 25, 2022

I have same issue.

Is it related with version update?

Because I found this issue on today.....

@jianxingxuejian jianxingxuejian changed the title now if you use await,volar don't throw a error that you should use async in the function now if you use await,volar can't throw a error that you should use async in the function Aug 25, 2022
@jianxingxuejian
Copy link
Author

I have same issue.

Is it related with version update?

Because I found this issue on today.....

yes, it worked normally in v0.39.5.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants