This dependency was not found: * @/comments/News in ./src/router/index.js
时间: 2023-09-30 21:08:54 浏览: 119
这个错误提示意味着在你的Vue.js项目中,你的代码中试图引用一个名为"@/comments/News"的模块,但是这个模块并不存在或者未被正确导入。
你可以检查以下几个方面:
1. 确认你是否已经安装了"@/comments/News"模块的依赖。
2. 确认你是否正确地导入了"@/comments/News"模块。
3. 确认你是否正确地配置了webpack或者babel来正确解析这个模块。
另外,建议你在编写代码时,尽可能使用相对路径而不是绝对路径来引用模块,这样可以避免一些路径错误。
相关问题
ERROR Failed to compile with 1 errors 下午4:49:18 This dependency was not found: * @/views/base/sso/sso-login-types.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/login/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/views/base/sso/sso-login-types.vue
It seems like there is a missing dependency in your project. The file `sso-login-types.vue` is not found in the `@/views/base/sso/` directory. To resolve this issue, you can try running the following command to install the missing dependency:
```
npm install --save @/views/base/sso/sso-login-types.vue
```
Make sure you have the correct package name and version specified in your `package.json` file.
This dependency was not found: * ant-design-vue/dist/antd.less in ./src/main.js问题出在哪里?怎么解决?
这个问题出在项目中缺少了 ant-design-vue/dist/antd.less 这个依赖,解决方法是安装 ant-design-vue 并在 main.js 中引入 antd.less 文件。可以使用命令 npm install ant-design-vue 安装 ant-design-vue。
阅读全文