请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

This dependency was not found

import Vue from 'vue'
import './cube-ui'
import App from './App.vue'
import 'common/stylus/index.styl'
Vue.config.productionTip = false
new Vue({
  render: h => h(App)
}).$mount('#app')

提示:
ERROR Failed to compile with 1 errors 10:38:38
This dependency was not found:

  • common/stylus/index.styl in ./src/main.js
    To install it, you can run: npm install --save common/stylus/index.styl
 chainWebpack(config) {
    config.resolve.alias
      .set('components', resolve('src/components'))
      .set('common', resolve('src/common'))
      .set('api', resolve('src/api'))

    config.plugin('context')
      .use(webpack.ContextReplacementPlugin,
        [/moment[/\\]locale$/, /zh-cn/])
  },

正在回答 回答被采纳积分+3

1回答

ustbhuangyi 2019-08-20 10:57:53

你的 common 目录下有这个文件吗,改成相对路径试试呢?

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

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

帮助反馈 APP下载

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

公众号

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