设置了alias,还是找不到 ~common/stylus/variable 路径
来源:2-4 项目目录介绍及图标字体、公共样式等资源准备
啊子言
2018-01-18
按照视频的操作进行的,设置了alias,还是找不到 ~common/stylus/variable 路径报错如下:
error in ./src/App.vue Module build failed: Error: Failed to find '~common/stylus/variable' in [ C:\Users\DELL\Desktop\vue\vue-music\vue-music\src ] at resolveModule.catch.catch (C:\Users\DELL\Desktop\vue\vue-music\vue-music\node_modules\postcss-import\lib\resolve-id.js:35:13) at <anonymous> @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-04c2046b","scoped":false,"hasInlineConfig":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-296 13:3-17:5 14:22-304 @ ./src/App.vue @ ./src/main.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
写回答
1回答
-
ustbhuangyi
2018-01-19
确保你的路径正确, stylus 和 stylus-loader 都已经安装。
012018-01-19
相似问题