Open dzarezenko opened 5 years ago
Try to add the dependency inside the nuxt config file and then just call new Inputmask inside mounted call. Just had the same issue.
EDIT Use this https://github.com/vuejs-tips/v-money
In the plugins folder, create the vuemask.client.js file Add to it: import Vue from 'vue' const VueInputMask = require ('vue-inputmask'). default Vue.use (VueInputMask) Include this file in nuxt.config.js Last step in tag input: v-mask = "{mask: '+38 (999) 999-99-99'}"
When I am trying to use this package in my NUXT.js project I receiving
window is not defined
error