Module not found: Error: Can't resolve 'normalize.css' in 'C:\Users\修振良\Desktop\erabbit-pc-vue-project02\src'
时间: 2023-10-16 11:06:35 浏览: 75
这个错误提示是因为在你的项目中找不到 `normalize.css` 这个模块。`normalize.css` 是一个用于重置浏览器默认样式的 CSS 库,很多项目都会使用它来保证网页在不同浏览器下的显示效果一致。
你可以通过以下几种方法解决这个问题:
1. 安装 `normalize.css` 模块
在命令行中执行以下命令:
```
npm install normalize.css
```
安装完成后,你就可以在项目中引入 `normalize.css` 了。
2. 更改项目中的样式文件
如果你不想使用 `normalize.css`,你也可以在项目中更改样式文件,将其中的默认样式进行重置。
3. 检查文件路径
如果你已经安装了 `normalize.css`,但还是出现了该错误提示,那么可能是文件路径的问题。你可以检查一下该文件是否存在于指定的路径中。如果路径有误,你需要修改相应的代码。
相关问题
Module not found: Error: Can't resolve 'vuex-persistedstate' in 'C:\Users\修振良\Desktop\erabbit-pc-vue-project02\src\store'
这个错误通常是因为没有安装 `vuex-persistedstate` 或者没有将其添加到项目依赖中。请运行以下命令来安装它:
```
npm install vuex-persistedstate
```
如果已经安装了 `vuex-persistedstate`,请检查你的 `package.json` 文件和 `node_modules` 目录,确保它已经被正确地添加到项目依赖中。
如果你已经确认 `vuex-persistedstate` 已经正确地被安装和添加到依赖中,但仍然遇到该错误,请检查你的路径是否正确。你可以试着在 `src/store` 目录下创建一个空的 `index.js` 文件,看看是否仍然会有该错误。
Module not found: Error: Can't resolve './index.css' in 'C:\Users\23789\vue_test\src'
引用\[1\]:ERROR in ./src/index.js 4:0-24 Module not found: Error: Can't resolve './css/index.css' in 'D:\VScode Project\vue\change\src' resolve './css/index.css' in 'D:\VScode Project\vue\change\src' using description file: D:\VScode Project\vue\change\package.json (relative path: ./src) Field 'browser' doesn't contain a valid alias configuration using description file: D:\VScode Project\vue\change\package.json (relative path: ./src/css/index.css) 。 引用\[2\]:今天在学习 Vue 的 webpack 时(使用配置文件配置),使用 webpack 命令打包项目时,报了 ERROR in Entry module not found: Error: Can't resolve './src' in XXX 的错误。报错截图以及项目目录如下: 。 引用\[3\]:是不是很低级的错误,捂脸.jpg。我这里再总结一下我百度和谷歌搜到的解决方案的综合吧! 解决方案 检查 entry 配置的路径是否出错检查 webpack.config.js 的路径是否出错,webpack.config.js 必须是放在根目录下检查配置文件文件名是否出错,是 webpack.config.js 而不是 webpack-config.js如果是 v4.0.0 以上版本的 webpack,可以不使用配置文件配置 webpack ,使用官网推荐的使用 ./src/index.js 作为入口点。
问题: Module not found: Error: Can't resolve './index.css' in 'C:\Users\23789\vue_test\src'
回答: 这个错误是由于在路径 'C:\Users\23789\vue_test\src' 中找不到 './index.css' 模块导致的。可能的解决方案包括:
1. 检查路径是否正确,确保 './index.css' 文件存在于 'C:\Users\23789\vue_test\src' 目录中。
2. 检查 webpack 配置文件中的路径是否正确,确保正确引用了 './index.css'。
3. 检查文件名是否正确,确保文件名为 'index.css' 而不是其他名称。
希望这些解决方案能够帮助您解决问题。
#### 引用[.reference_title]
- *1* [Module not found: Error: Can‘t resolve ‘./css/index.css‘ in ‘D:\VScode Project\vue\change](https://blog.csdn.net/m0_61886817/article/details/123167469)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [ERROR in Entry module not found: Error: Can't resolve './src' in XXX的一个解决方案](https://blog.csdn.net/zinbin/article/details/106325164)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)