Module not found: Error: Can't resolve '@/views/pay' in 'C:\Users\86158\Desktop\demo\xx-shopping\src\router'
时间: 2023-09-08 21:10:16 浏览: 272
手动解决Cannot find module '@sentry/webpack-plugin'等问题
5星 · 资源好评率100%
Module not found: Error: Can't resolve '@/views/pay' in 'C:\Users\86158\Desktop\demo\xx-shopping\src\router' 这个错误通常是由于模块路径的问题引起的。根据引用,在Webpack中,可以通过运行'webpack(-cli) --help'来获取更多的帮助信息。你可以尝试运行这个命令来查看是否能够找到解决方法。此外,还可以检查一下你的路径是否正确,引用中提到的错误信息中看到了"ERROR in Entry module not found: Error: Can't resolve './src' in 'E:\HBuilder\Vue\day07\test1' npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! test."这个错误信息,这可能意味着在你的项目中找不到'./src'文件夹,你可以检查一下相对路径是否正确。如果你使用的是vue-cli,你可以尝试重新安装依赖并重新启动项目来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [npm run dev 报错 ERROR in Entry module not found: Error: Can’t resolve ‘./src’ in](https://download.csdn.net/download/weixin_38503496/14041713)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [四年背的单词 笔记目录](https://blog.csdn.net/xjyr/article/details/81813000)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文