kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 56 forks source link

fileSource.split is not a function #101

Open vincentDarcq opened 1 year ago

vincentDarcq commented 1 year ago

On Angular 14, I try to display galleries from objects from my API.

Here is my options : this.galleryOptions = [ { "thumbnails": false }, { "breakpoint": 500, "width": "5%", "height": "100px" } ];

I tried other options but still same error :

ERROR TypeError: fileSource.split is not a function at NgxGalleryService.getFileType (kolkov-ngx-gallery.mjs:45:42) at kolkov-ngx-gallery.mjs:1613:68 at Array.forEach () at NgxGalleryComponent.setImages (kolkov-ngx-gallery.mjs:1613:21) at NgxGalleryComponent.ngDoCheck (kolkov-ngx-gallery.mjs:1459:18) at callHook (core.mjs:2501:18) at callHooks (core.mjs:2460:17) at executeInitAndCheckHooks (core.mjs:2411:9) at selectIndexInternal (core.mjs:9836:17) at Module.ɵɵadvance (core.mjs:9819:5)