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

Failed to resolve directive: el (found in component <mt-swipe>) #25

Open
mapleslong opened this issue Oct 6, 2016 · 8 comments
Open

Comments

@mapleslong
Copy link

mapleslong commented Oct 6, 2016

`require('vue-swipe/dist/vue-swipe.css')

import { Swipe, SwipeItem } from 'vue-swipe'

export default ({
components: {
'swipe': Swipe,
'swipe-item': SwipeItem
}
})`

<template> <swipe class="my-swipe"> <swipe-item class="slide1">Slide1</swipe-item> <swipe-item class="slide2">Slide2</swipe-item> <swipe-item class="slide3">Slide3</swipe-item> </swipe> </template>

This code use to work with versions of Vue 2.0

@huysh3
Copy link

huysh3 commented Nov 30, 2016

+1

@SidFeng
Copy link

SidFeng commented Dec 15, 2016

+1
_h is not defined

@tolerious
Copy link

+1

@Helloooooooooo
Copy link

use vue@2.1.4
= =!!

@SidFeng
Copy link

SidFeng commented Dec 19, 2016

我自己解决了,版本的问题
"vue": "2.1.3",
"vue-template-compiler":"2.1.3",
"vue-loader": "10.0.0",
固定装这几个版本,就不会出问题了,执行下面的命令

sudo rm -rf node_modules
sudo npm cache clean
sudo npm install

@IdenPin
Copy link

IdenPin commented Dec 26, 2016

很纳闷,按照@SidFeng的办法固定版本的确能解决问题。但是一开始我的swipe加载了,只是width的全值太低了被重置了。导致没有宽度无法显现,最后手动写入!important才解决 。不知道为什么 ~

@valentinvieriu
Copy link

+1 downgrading to vue@2.1.4 works, but this should work with latest stable build too

@judy98taylor
Copy link

"vue","vue-template-compiler"这两个库版本一样就行。

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

8 participants