Closed orionna319 closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
running-page | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 15, 2024 4:31pm |
Cool! I found this bug before. Thank you for fixing it.
Before
When hovering over the
YearStat
component, the page crashes if the./year_${year}.svg
file is not found.Error call stack
TypeError: yearStats[year] is not a function at http://localhost:5173/src/components/YearStat/index.tsx?t=1705334672175:30:42 at lazyInitializer (http://localhost:5173/node_modules/.vite/deps/chunk-5HQCJSLF.js?v=dfc8bfd7:869:28) at mountLazyComponent (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:14817:27) at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:15906:22) at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:19749:22) at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:19194:20) at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:19133:13) at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:19112:15) at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:18732:28) at performConcurrentWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-S3R3ZQRI.js?v=dfc8bfd7:18680:30)https://github.com/yihong0618/running_page/assets/85230052/5f5ba533-314b-47d6-82c0-4e3311618006
After
https://github.com/yihong0618/running_page/assets/85230052/12cd0730-86e4-4048-949e-1f7a5824e502