命令提示符输入:
cnpm run dev
错误:
ERROR Failed to compile with 1 errors 下午6:09:19
This dependency was not found:
* vue-easytable/libs/themes-base/index.css in ./src/main.js
To install it, you can run: npm install --save vue-easytable/libs/themes-base/index.css
webstorm main.js代码:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入IVIEW组件
import iView from 'iview'
import 'iview/dist/styles/iview.css'
Vue.use(iView);
//引入vue-easytable
import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable'
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})