Can't resolve 'vuex' in 'F:\project\VS_JS\Vue\project\vue_test\src\store'
时间: 2023-09-20 20:07:46 浏览: 38
This error message suggests that the Vue project is unable to find the Vuex library in the specified directory. To resolve this issue, you can try the following steps:
1. Make sure that you have installed Vuex in your project by running the command `npm install vuex` in your project directory.
2. Check if the path to the 'vuex' module is correct. In this case, the path should be 'F:\project\VS_JS\Vue\project\vue_test\node_modules\vuex'.
3. Make sure that the import statement in your store file is correct. It should be `import Vuex from 'vuex'`.
4. Restart your development server and try importing the Vuex module again.
If the above steps do not resolve the issue, you can try reinstalling the Vuex library or creating a new Vue project and installing Vuex in it.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_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)