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

Manually typing slot data in template does not work in Volar TS Server prerelease #2617

Closed
loilo opened this issue Apr 17, 2023 · 1 comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@loilo
Copy link

loilo commented Apr 17, 2023

Manually typing slot data of untyped components works with stable TypeScript Vue Plugin (1.2.0) but breaks in the current prerelease (1.3.17):

The component code from below as seen in VS Code, showing an error on the colon after 'data', stating: ',' expected. (ts1005)

Component code:

<script lang="ts" setup>
import { defineComponent } from 'vue'

let UntypedComponent = defineComponent({})
</script>

<template>
  <UntypedComponent>
    <template #default="data: { foo: string }">
      {{ data.foo }}
    </template>
  </UntypedComponent>
</template>

Is there anything else I can provide to help with resolving this? :)

@jacob-carlborg-apoex
Copy link

It's broken in the latest version (1.3.18) as well.

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

3 participants