欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-03-28 19:15:26
出现 this dependency was not found: * common/stylus/index.styl in ./src/main.js to install 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')
  }
},