This dependency was not found: * vue- in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!
时间: 2023-08-17 19:04:09 浏览: 269
这个错误提示通常是因为你的项目中缺少了vue.js依赖。你需要通过npm或者yarn等包管理工具安装vue.js依赖,然后在你的项目中引入vue.js。如果你已经安装了vue.js依赖,那么可能是你的webpack配置文件没有正确配置,需要检查一下。另外,如果你使用的是vue-cli创建的项目,可以尝试使用vue-cli提供的webpack配置来解决这个问题。
相关问题
This dependency was not found: * @/api/wms/category 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/system/category/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/api/wms/category This dependency was not found: * @/api/wms/category 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/system/category/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/api/wms/category
This error message indicates that the dependency "@/api/wms/category" could not be found. It seems that you need to install this dependency in order to resolve the issue.
To install the missing dependency, you can run the following command in your terminal:
```
npm install --save @/api/wms/category
```
This command will install the "@/api/wms/category" package and save it as a dependency in your project's package.json file. Once the installation is complete, you should be able to resolve the dependency and resolve the error.
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` 文件中正确地导入它。
阅读全文