Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContext
Los mantenedores suelen responder en 1 día
@swarnendusahu10-dotcom ya está trabajando en esto.
Desde el 2/12/2026.
- #1483 de @swarnendusahu10-dotcom — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
Empieza por rastrear cómo FuselageSurfaceRenderer renderiza Markup y cómo UserMention lee MarkupInteractionContext; el issue apunta a ambos en el flujo de @embeddedchat/ui-kit. Reproduce el problema con un mensaje de UIKit que contenga una @mention fuera del provider y luego revisa las pruebas existentes de estos componentes. Se considera resuelto cuando la mención se renderiza sin mostrar una pantalla en blanco si falta el provider.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
When scrolling up to load older messages in a channel containing UIKit blocks (e.g., #community-chat-any-topic), EmbeddedChat crashes to a blank white screen with:
Uncaught TypeError: Cannot read properties of undefined (reading 'members') in UserMention.
Root Cause
FuselageSurfaceRenderer(in@embeddedchat/ui-kit) renders<Markup>formrkdwntext without wrapping it in<MarkupInteractionContext.Provider>.MarkupInteractionContextis initialized withcreateContext()(undefineddefault).- When any UIKit block contains a
@mention,UserMentiondestructures{ members, username }fromundefined, crashing the entire React tree.
Steps to Reproduce
- Open EmbeddedChat in a channel with historical UIKit messages containing
@mentions(e.g.,#community-chat-any-topic). - Scroll up to load older messages.
- As soon as a UIKit block containing a
@mentionis rendered, the app crashes to a white screen.
Expected Behavior
@mentions inside UIKit blocks or standalone <Markup> should render safely without crashing even when MarkupInteractionContext.Provider is not present.
Screen Recording / Screenshots
https://github.com/user-attachments/assets/6935a208-8508-4cd7-a075-4fc4f625c712
- Lenguaje dominante
- JavaScript
- Estrellas
- 171
- Forks
- 421
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationPosiblemente ocupada @MuhammadFaizan-prog la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RocketChat/EmbeddedChat#1489 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Posiblemente ocupada @yashsarvaiya45 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
RocketChat/EmbeddedChat#1486 ·
Los mantenedores suelen responder en 1 día
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedPosiblemente ocupada @ashwanisingh011 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RocketChat/EmbeddedChat#1484 ·
Los mantenedores suelen responder en 1 día
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outPosiblemente ocupada @swarnendusahu10-dotcom la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RocketChat/EmbeddedChat#1480 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ug(react): guard against null childElement in MessageAggregator setJumpToMessagePosiblemente ocupada @Suraj704-glitch la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
RocketChat/EmbeddedChat#1478 ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
[Docs] CONTRIBUTING.md links to retired GitHub Learning Lab and Try Git sitesPosiblemente ocupada @adityamukesh la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
reillywalter/win-dev-doctor#92 ·
Los mantenedores suelen responder en 1 día
-
[Feature] 新增「查看完整听歌设备记录」接口Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100