Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GalleriaThumbnail afterViewInit use platformBrowser instead of isPlatformBrowser #14534

Closed
LudoGilloTools opened this issue Jan 11, 2024 · 1 comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@LudoGilloTools
Copy link

Describe the bug

When creating a p-galleria component, I have the following error :

ERROR Error: NG0400: A platform with a different configuration has been created. Please destroy it first.

This came from the AfterViewInit of GalleriaThumbnail component where this is done :

if (platformBrowser(this.platformId))

Our angular app is launched with platformBrowserDynamic.

Environment

angular 17 app launching with platformBrowserDynamic

Reproducer

No response

Angular version

17.0.10

PrimeNG version

17.3.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@LudoGilloTools LudoGilloTools added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 11, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Thanks a lot for reporting the issue, good catch!

@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 12, 2024
@cetincakiroglu cetincakiroglu added this to the 17.3.3 milestone Jan 12, 2024
@cetincakiroglu cetincakiroglu added LTS-PORTABLE Issue's fix will be ported to supported LTS versions LTS-16-PORTABLE and removed LTS-PORTABLE Issue's fix will be ported to supported LTS versions labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants