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

Cannot read property 'install' of undefined #36

Open
soylomass opened this issue Apr 9, 2019 · 1 comment
Open

Cannot read property 'install' of undefined #36

soylomass opened this issue Apr 9, 2019 · 1 comment

Comments

@soylomass
Copy link

I get the following error:

Uncaught TypeError: Cannot read property 'install' of undefined
at Function.Vue.use (vue.esm.js:4750)

When trying to use the component as it says on the README:

import Vue2TouchEvents from 'vue2-touch-events'
Vue.use(Vue2TouchEvents);

I'm using Vue 2.5.13

@SimDaeSoo
Copy link

SimDaeSoo commented Nov 1, 2019

Hello if you using typescript?
when i had same problem this issue in Vue 2.6.x version
but i solved it this way

before (error)

import Vue2TouchEvents from 'vue2-touch-events';

Vue.use(Vue2TouchEvents);

image

after (working)

import * as Vue2TouchEvents from 'vue2-touch-events';

Vue.use(Vue2TouchEvents as any);

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

2 participants