为了账号安全,请及时绑定邮箱和手机立即绑定

vue-cli报错“Module not found: Error: Can't resolve”

vue-cli报错“Module not found: Error: Can't resolve”

呼唤远方 2019-03-02 14:15:20
最近在学习vuex,于是把之前用vue写的小项目用vuex重写了,发现在main.js中引入样式报错,引入的element-ui组件的样式也都没了,依赖都重新安装了也没用。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'import ElementUI from 'element-ui' // 引入EelmentUI组件import './common/sass/index'import '../static/css/reset'// import axios from 'axios'import store from './store/index'Vue.use(ElementUI)// Vue.prototype.$http = axiosVue.config.productionTip = false/* eslint-disable no-new */new Vue({  el: '#app',  router,  store,  template: '<App/>',  components: { App }})
查看完整描述

1 回答

?
慕哥9229398

TA贡献1877条经验 获得超6个赞

import './common/sass/index.scss'

import '../static/css/reset.css'

后缀写全了试试

查看完整回答
反对 回复 2019-03-05
  • 1 回答
  • 0 关注
  • 4005 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号