cometchat-angular-v5-core
Installation
SKILL.md
Ground truth:
@cometchat/chat-uikit-angular@^5+@cometchat/chat-sdk-javascript@^4, symbols verified across 5.1.0–5.2.0 / 4.1.13–4.2.0 (unchanged set; catalogverifiedCompatibleRange). This file is the THIN map loaded every run; deep detail lives inreferences/*, loaded ONLY when the task needs it.
Use this skill when
Adding CometChat to an Angular app, or you need the setup every other Angular v5 skill assumes: install, credentials, init→login→render ordering, and the component map.
Prerequisites & install
The three Angular rules that break everything else
Read these first. Each produces code that compiles, shows no error, and does not work.
- Every component must be in
imports: []. The kit ships standalone components. Use<cometchat-conversations>in a template without importingCometChatConversationsComponentinto that component'simportsarray and Angular renders nothing — no error, no warning, blank space. This is the single most common failure. - Config lives in
src/environments/environment.ts, NOT.env. Angular resolves it at build time via file replacement. Any.envinstruction is wrong here. - Class name ≠ selector ≠ docs title.
CometChatConversationsComponent(import) ·<cometchat-conversations>(template) · "Conversations" (docs). All three are different; use the right one in the right place.
Install
npm install @cometchat/chat-uikit-angular@^5 @cometchat/chat-sdk-javascript@^4 @cometchat/cards-angular@^1 dompurify@^3
Calls only (optional): npm install @cometchat/calls-sdk-javascript@^5