Skip to content

igxButton/igxIconButton throw TypeError: Cannot read properties of undefined (reading 'unsubscribe') in SSR #16733

@RivaIvanova

Description

@RivaIvanova

Description

If you have an igxButton or igxIconButton inside an SSR project, either of them throws TypeError: Cannot read properties of undefined (reading 'unsubscribe').

<button igxButton="flat">Button</button>

<button igxIconButton="flat">
  <igx-icon>home</igx-icon>
</button>

Related to https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/36904#13216343

  • igniteui-angular version: 20.1.x, 21.0.x, master
  • browser: any

Steps to reproduce

  1. Create an SSR project
  2. Add an igxButton or igxIconButton
  3. Run the project

Result

Image

Expected result

No errors

Attachments

Attach a sample if available, and screenshots, if applicable.

Metadata

Metadata

Assignees

Labels

🐛 bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.angular: ssrbuttonicon-button

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions