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') } },