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

Doesn't work with NUXT.js #4

Open
dzarezenko opened this issue Feb 15, 2019 · 2 comments
Open

Doesn't work with NUXT.js #4

dzarezenko opened this issue Feb 15, 2019 · 2 comments

Comments

@dzarezenko
Copy link

When I am trying to use this package in my NUXT.js project I receiving window is not defined error

screen shot 2019-02-15 at 16 30 17

@cbgesbocker
Copy link

cbgesbocker commented May 24, 2019

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

@AntonLatyshev
Copy link

AntonLatyshev commented Nov 21, 2019

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'}"

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

3 participants