This dependency was not found: * vue- in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!
时间: 2023-08-17 20:04:09 浏览: 70
这个错误提示通常是因为你的项目中缺少了vue.js依赖。你需要通过npm或者yarn等包管理工具安装vue.js依赖,然后在你的项目中引入vue.js。如果你已经安装了vue.js依赖,那么可能是你的webpack配置文件没有正确配置,需要检查一下。另外,如果你使用的是vue-cli创建的项目,可以尝试使用vue-cli提供的webpack配置来解决这个问题。
相关问题
(node:7668) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) 12% building modules 24/29 modules 5 active ...plate&index=0!D:\DEMO\hhn\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }. 94% asset optimization ERROR Failed to compile with 1 errors 14:24:32 This dependency was not found: * !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-4bcb6fe4","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./LoginView.vue in ./src/views/user/LoginView.vue To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-4bcb6fe4","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./LoginView.vue
这个错误提示表明在你的项目中缺少一个依赖项。根据错误信息中提供的建议,你可以尝试运行以下命令来安装缺失的依赖项:
```
npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-4bcb6fe4","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./LoginView.vue
```
运行以上命令后,该依赖项应该被正确安装,然后你可以重新编译你的项目。希望这能解决你的问题!如果还有其他问题,请随时提问。
This dependency was not found: * @views/mchApp/passageManage/payPassagePage.vue in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/mchApp/passageManage/passagePage.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @views/mchApp/passageManage/payPassagePage.vue
这个错误提示的意思是在 `./src/views/mchApp/passageManage/passagePage.vue` 文件中的 `<script>` 标签里的代码引用了一个组件 `@views/mchApp/passageManage/payPassagePage.vue`,但是这个组件没有被正确地导入。
您可以先检查一下这个组件的路径是否正确,如果路径正确,那么可能是因为您没有在 `./src/views/mchApp/passageManage/passagePage.vue` 文件中正确地导入这个组件。
您可以在 `./src/views/mchApp/passageManage/passagePage.vue` 文件中的 `<script>` 标签中的 `import` 语句中导入这个组件即可。例如:
```js
import payPassagePage from '@/views/mchApp/passageManage/payPassagePage.vue'
export default {
components: {
payPassagePage
},
// ...
}
```
如果您还未在项目中创建这个组件,那么您需要先创建这个组件,然后再在 `./src/views/mchApp/passageManage/passagePage.vue` 文件中正确地导入它。