Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Cannot read properties of undefined (reading 'instance') at DialogService.getInstance #14856

Description

@sibinxsimelabs

Describe the bug

getInstance method product Cannot read properties of undefined (reading 'instance') at DialogService.getInstance error. So component not displaying .
Same can be reproduce in PrimeNG dynamic dialog example

Environment

Development

Reproducer

https://stackblitz.com/edit/nga6lg

Angular version

17.1.X

PrimeNG version

17.7.X

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.9.0

Browser(s)

Edge

Steps to reproduce the behavior

  1. Create Dynamic dialog
  2. With/Without data
  3. Inside constructor , try to call getInstace method

Expected behavior

It should not throw any error and show dynamic dialog component

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions