This relative module was not found: * ../views//oa/purchase in ./src/router/index.js
时间: 2023-10-05 17:05:06 浏览: 166
这看起来像是一个找不到相对模块的错误,与路径 ../views//oa/purchase 在 ./src/router/index.js 中有关。要解决这个问题,您可以检查路径是否正确,还可以检查文件结构是否正确,并确保文件中没有语法错误。如果问题仍然存在,请查阅相关文档或与开发人员进行交流以获取更多帮助。
相关问题
These dependencies were not found: * @/views/About.vue in ./src/router/index.js * @/views/Home.vue in ./src/router/index.js
这个错误通常是因为你在`router/index.js`文件中引用了`@/views/About.vue`和`@/views/Home.vue`组件,但是这两个组件在你的项目中并不存在。
解决这个问题的方法是,检查一下你的项目结构,确保`views`文件夹下有`About.vue`和`Home.vue`文件,并且它们的路径是正确的。这里的`@`符号是一个别名,指向`src`目录。因此,`@/views/About.vue`的路径实际上是`src/views/About.vue`。
如果你的项目结构是正确的,但仍然出现这个错误,那么可以尝试重新安装依赖项,以确保所有依赖项都已正确安装。可以使用以下命令重新安装依赖项:
```
npm install
```
如果你在使用Vue CLI创建项目时选择了默认的配置,则应该会自动为你创建`views`文件夹,并在其中包含`Home.vue`和`About.vue`组件。如果你手动创建了这些文件,那么请确保它们的文件名和路径都是正确的。
This dependency was not found: * @/views/MenuList in ./src/router.js
回答: 根据你提供的引用内容,这个错误是由于在`./src/router.js`文件中找不到`@/views/MenuList`这个依赖引起的。要解决这个问题,你需要确保`MenuList`组件的路径是正确的,并且已经正确地导入到`router.js`文件中。请检查一下`MenuList`组件的路径是否正确,并且确保在`router.js`文件中正确地导入了该组件。如果路径和导入都没有问题,那么可能是其他地方出现了错误导致找不到该依赖。你可以进一步检查代码并查看是否有其他错误导致了这个问题的发生。
#### 引用[.reference_title]
- *1* *2* *3* [This dependency was not found: * swiper/dist/css/swiper.css in ./src/main.js](https://blog.csdn.net/weixin_43918847/article/details/111465224)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)