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

Failed to Resolve Directive #37

Open
jamespurnama1 opened this issue Dec 19, 2020 · 0 comments
Open

Failed to Resolve Directive #37

jamespurnama1 opened this issue Dec 19, 2020 · 0 comments

Comments

@jamespurnama1
Copy link

jamespurnama1 commented Dec 19, 2020

This module used to work but somehow stopped working. Running Vue 2.6.12. I have tried importing it in the child component & importing it like so:
import VueHotkey from 'v-hotkey/dist/v-hotkey.umd' but it still did not work.

Here is a simple setup of my project which includes another Vue module:
Child.vue

<template>
    <div v-hotkey="keymap" v-touch:swipe="swipe">
     // some divs
    </div> 
</template>
<script>
export default {
  computed: {
    keymap () {
      return {
        up: this.goPrev,
        down: this.goNext,
// ...
};
</script>

main.js

import Vue2TouchEvents from 'vue2-touch-events';
import VueHotkey from 'v-hotkey';

Vue.use(Vue2TouchEvents)
   .use(VueHotkey);

Did I do something wrong? Or is there a bug like these other modules' (1) (2) (3) git issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant