我的package.json
"dependencies": {
"babel-runtime": "^6.0.0",
"vue": "^1.0.21",
"vum": "0.0.2"
},
在我进入项目npm run dev 时报错
在main.js中调用vum
import Vue from 'vue'
import Router from 'vue-router'
import FastClick from 'fastclick'
import Vum from 'vum'//应该是这里报错
import Index from './components/Index'
Vue.use(Router)
Vue.use(Vum)
let App = Vue.extend()
let router = new Router()
router.map({
'/': {
name: 'index',
component: Index
}
})
router.start(App, '#app')
Vum.router(router)
FastClick.attach(document.body)
看了错误信息,vum 应该在 node_modules 目录里面找,怎么是 src 啊。是不是配置错了。