Unable to SSR TinaMarkdown
Author: joaopbnogueiraCreated Jul 11, 2024Updated Sep 17, 2026
Labelsbugrich-text
Pain
A user reported that TinaMarkdown could not be server rendered, and blamed the useMemo hook in the rich text renderer. That diagnosis is wrong. The report never included the actual error, so what broke for them is still unknown.
StaticTinaMarkdown was added for server rendering, but it silently drops the highlight formatting the editor produces.
️ Approach
- Ask the reporter for the actual error and stack trace, and for what their server bundle resolves React to.
✅ Acceptance Criteria
- The real trigger is named from the reporter's error, or the issue is closed as cannot reproduce.
- No answer points at StaticTinaMarkdown for server rendering while it still drops highlight marks.
Related
- Rich text renderer the report pointed at: https://github.com/tinacms/tinacms/tree/main/packages/tinacms/src/rich-text/index.tsx
- Where StaticTinaMarkdown landed: https://github.com/tinacms/tinacms/pull/5783
- Open follow-up on the duplicated static renderer: https://github.com/tinacms/tinacms/issues/5798
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug.
Source: tinacms/tinacms