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

Error using custom directive: Expected 2 arguments, but got 1. #2730

Closed
xieyhn opened this issue Apr 27, 2023 · 0 comments
Closed

Error using custom directive: Expected 2 arguments, but got 1. #2730

xieyhn opened this issue Apr 27, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@xieyhn
Copy link

xieyhn commented Apr 27, 2023

image

Code:

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

const vMyDirective: Directive<HTMLElement> = {}


</script>

<template>
  <div v-my-directive></div>
</template>

<style lang="scss" scoped></style>

Dependencies:

"vue": "^3.2.47"

"typescript": "^5.0.2",
"vite": "^4.3.0",
"vue-tsc": "^1.2.0"

Vue Language Features (Volar)
v1.6.0

@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 27, 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

2 participants