Pitu / vue-isyourpasswordsafe

A small utility written in Vue that checks if the given password has been leaked against the Have I Been Pwned API.
https://pitu.github.io/vue-isyourpasswordsafe
MIT License
37 stars 3 forks source link

Got error dependency `vue-isyourpasswordsafe` was not found in Nuxt #20

Open fahmiegerton opened 3 years ago

fahmiegerton commented 3 years ago

Hi, thanks for this great helpful module. I tried this module but it didn't detected in Nuxt. Here's my code :

// vue-pwned.client.js

import Vue from 'vue'
import VueIsYourPasswordSafe from 'vue-isyourpasswordsafe'
Vue.use(VueIsYourPasswordSafe)
// nuxt.config.js

.....
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  plugins: [
    ....
    {src: '~/plugins/vee-validate.js'},
    { src: '~plugins/vue-simplemd.client.js' },
    { src: '~plugins/vue-infinite-loading.client.js'},
    { src: '~plugins/vue-pwned.client.js'},
    ....
  ],
.....

And this is the error output log image

Can you help me? Thank you

Pitu commented 3 years ago

Seems the plugin is not installed, are you sure you did npm i vue-isyourpasswordsafe?