当前位置: 移动技术网 > IT编程>开发语言>JavaScript > This dependency was not found: * common/stylus/index.styl in ./src/main.js问题解决

This dependency was not found: * common/stylus/index.styl in ./src/main.js问题解决

2018年10月30日  | 移动技术网IT编程  | 我要评论

出现

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

的解决办法是 在

build\webpack.base.conf.js

将 resolve添加

resolve: {
  extensions: ['.js', '.vue', '.json'],
  alias: {
    'vue$': 'vue/dist/vue.esm.js',
    '@': resolve('src'),
    'common': resolve('src/common')
  }
},

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网