nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
290 stars 159 forks source link

Narratives editor broken #1725

Closed victorlin closed 7 months ago

victorlin commented 7 months ago

reported by @huddlej on Slack

I tested locally and can reproduce. Determined that the narratives editor works on v2.49.0 but not v2.50.0. Relevant parts of error message:

Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

The above error occurred in the <DebugNarrative> component

Steps to reproduce:

  1. Download example narrative.
  2. Go to nextstrain.org/edit/narratives.
  3. Drag the narratives file onto the page
  4. Observe error