Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Narratives editor broken #1725

Closed
victorlin opened this issue Nov 16, 2023 · 0 comments · Fixed by #1726
Closed

Narratives editor broken #1725

victorlin opened this issue Nov 16, 2023 · 0 comments · Fixed by #1726
Assignees
Labels
bug Something isn't working

Comments

@victorlin
Copy link
Member

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
@victorlin victorlin added the bug Something isn't working label Nov 16, 2023
@victorlin victorlin self-assigned this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant