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
时间: 2023-10-08 17:09:35 浏览: 545
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.
相关问题
解决ERROR Failed to compile with 1 errors 09:22:47 This dependency was not found: swiper/swiper-bundle.css in ./node_module 08:56:04 This dependency was not found: * swiper/swiper-bundl
这个错误通常是由于缺少依赖项或导入路径有误引起的。首先,确保你已经安装了最新版本的Swiper和它的依赖项,可以通过运行以下命令来安装:
```
npm install swiper
```
如果你已经安装了Swiper但仍然遇到问题,请尝试删除 `node_modules` 文件夹并重新安装依赖:
```
rm -rf node_modules
npm install
```
如果问题仍然存在,检查你的导入路径是否正确。在你的代码中,你应该使用以下语句导入Swiper CSS文件:
```javascript
import 'swiper/swiper-bundle.css';
```
注意,这里的路径应该是相对于你的代码文件的路径。如果你的代码文件和 `node_modules` 文件夹不在同一个目录下,请相应地调整导入路径。
ERROR Failed to compile with 1 errors 14:49:48 This dependency was not found: * vue-direction-key in ./src/main.js To install it, you can run: npm install --save vue-direction-key
这看起来是一个错误提示,可能是在使用Vue.js时出现了找不到依赖的问题。根据提示,你可以尝试运行`npm install --save vue-direction-key`来安装缺失的依赖。不过,这只是一种可能的解决方法,具体还需要根据具体情况来分析。如果需要更多帮助,请提供更详细的错误信息和代码上下文。