首页报错
TypeError: Cannot read properties of undefined (reading 'map') at Head (http://localhost:5173/src/frontHome/Head/index.tsx:176:84) at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:12171:26) at updateFunctionComponent (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:14577:28) at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:15912:22) at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19749:22) at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19194:20) at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19133:13) at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19112:15) at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:18732:28) at performSyncWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:18875:28) 登录页面为啥报这个错误
后端是否启动?
---原始邮件--- 发件人: @.> 发送时间: 2024年8月11日(周日) 晚上7:47 收件人: @.>; 抄送: @.***>; 主题: [LinMoQC/Memory-Blog] 首页报错 (Issue #21)
TypeError: Cannot read properties of undefined (reading 'map') at Head (http://localhost:5173/src/frontHome/Head/index.tsx:176:84) at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:12171:26) at updateFunctionComponent (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:14577:28) at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:15912:22) at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19749:22) at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19194:20) at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19133:13) at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:19112:15) at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:18732:28) at performSyncWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-ZRJG7NCB.js?v=6fd420f7:18875:28) 登录页面为啥报这个错误
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
启动了的
请附上后端日志以及前端网络请求,谢谢
---原始邮件--- 发件人: @.> 发送时间: 2024年8月11日(周日) 晚上7:49 收件人: @.>; 抄送: @.@.>; 主题: Re: [LinMoQC/Memory-Blog] 首页报错 (Issue #21)
启动了的
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
就在这个页面,后端没有收到任何请求
不要使用localhost作为域名,容器之间好像访问不通这个,需要使用公网IP或者具体域名
---原始邮件--- 发件人: @.> 发送时间: 2024年8月11日(周日) 晚上7:56 收件人: @.>; 抄送: @.@.>; 主题: Re: [LinMoQC/Memory-Blog] 首页报错 (Issue #21)
image.png (view on web)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
我直接npm run dev,然后打开这个链接,浏览器就是显示刚才那种情况了
这个注释解除就可以了