GalleriaThumbnail afterViewInit use platformBrowser instead of isPlatformBrowser #14534
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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
The text was updated successfully, but these errors were encountered: