⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(web): handle shiki initializer rejection in comment editor
justin7a7120ed37d9
diff --git a/apps/web/src/components/activity/comment-editor.tsx b/apps/web/src/components/activity/comment-editor.tsxindex 4210d73dd..1360414ff 100644--- a/apps/web/src/components/activity/comment-editor.tsx+++ b/apps/web/src/components/activity/comment-editor.tsx@@ -573,11 +573,18 @@ export default function CommentEditor({useEffect(() => {let mounted = true;- void getSharedShikiHighlighter().then((instance) => {- if (!mounted) return;- shikiHighlighterRef.current = instance;- setShikiHighlighter(instance);- });+ void getSharedShikiHighlighter()+ .then((instance) => {+ if (!mounted) return;+ shikiHighlighterRef.current = instance;+ setShikiHighlighter(instance);+ })+ .catch((err) => {+ // Shared initializer resets its cached promise on rejection so a+ // later attempt can retry. If this attempt also fails, swallow it+ // and render without syntax highlighting.+ console.error("Failed to initialize Shiki highlighter:", err);+ });return () => {mounted = false;