解决报错 This dependency was not found:(这个依赖没有找到)

解决报错 This dependency was not found:(这个依赖没有找到)_第1张图片
错误的原因是你这个文件引入或使用了文件资源,但却没有找到

我是因为写样式使用了less,却没有依赖,所以把less删掉或是下less依赖就可以了

<style scoped lang='less'>

</style>

报错全部信息
ERROR Failed to compile with 1 errors 下午10:57:54
This dependency was not found:

  • !!../…/…/node_modules/extract-text-webpack-plugin/dist/loader.js?{“omit”:1,“remove”:true}!vue-style-loader!css-loader?{“minimize”:false,“sourceMap”:false}!../…/…/node_modules/mpvue-loader/lib/style-compiler/index?{“vue”:true,“id”:“data-v-63082f0e”,“scoped”:true,“hasInlineConfig”:false}!px2rpx-loader?{“baseDpr”:1,“rpxUnit”:0.5}!postcss-loader?{“sourceMap”:true}!less-loader?{“sourceMap”:false}!../…/…/node_modules/mpvue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/live/index.vue

To install it, you can run: npm install --save !!../…/…/node_modules/extract-text-webpack-plugin/dist/loader.js?{“omit”:1,“remove”:true}!vue-style-loader!css-loader?{“minimize”:false,“sourceMap”:false}!../…/…/node_modules/mpvue-loader/lib/style-compiler/index?{“vue”:true,“id”:“data-v-63082f0e”,“scoped”:true,“hasInlineConfig”:false}!px2rpx-loader?{“baseDpr”:1,“rpxUnit”:0.5}!postcss-loader?{“sourceMap”:true}!less-loader?{“sourceMap”:false}!../…/…/node_modules/mpvue-loader/lib/selector?type=styles&index=0!./index.vue

你可能感兴趣的:(万紫千红报错啦,vue,小程序,javascript,js)