Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failed to Resolve Directive #37

@jamespurnama1

Description

@jamespurnama1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions