climbjios-sg / climbjios-app

The community for climbers 🧗
https://www.climbjios.com/
GNU General Public License v3.0
25 stars 4 forks source link

[Vite] Syntax/TypeError causes hmr update infinite loop #246

Closed CrownKira closed 1 year ago

CrownKira commented 1 year ago

Describe the bug [Vite] Syntax/TypeError causes hmr update infinite loop

To Reproduce Steps to reproduce the behavior:

  1. Go to frontend/src/pages/dashboard/jios/list/index.tsx
  2. Change enum value on line 19 eg. AllJios = 'All Jios :3',
  3. See error messages on chrome devtool console
  4. hmr update is stuck in endless loop

Expected behavior hmr update should stop when there is any syntax error.

Screenshots

https://user-images.githubusercontent.com/24221801/205437218-b5a6ddbe-c2fb-4852-92c1-ecdad1190ccf.mov

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.