nativescript-community / nativescript-community/ui-pager
ERROR: `isListLikeIterable()` is not a function in @nativescript/angular
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
With these versions installed:
@nativescript-community/ui-pager@14.1.16
@nativescript/angular@14.2.8
@angular/core@14.2.12
I get the following error when I run my app:
ERROR Error: Uncaught (in promise): TypeError: (0 , _nativescript_angular__WEBPACK_IMPORTED_MODULE_0__.isListLikeIterable) is not a function
TypeError: (0 , _nativescript_angular__WEBPACK_IMPORTED_MODULE_0__.isListLikeIterable) is not a function
at set items [as items] (file: src/webpack:/mandy/node_modules/@nativescript-community/ui-pager/angular/fesm2022/nativescript-community-ui-pager-angular.mjs:47:61)
at setInputsForProperty (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:13333:0)
at elementPropertyInternal (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:12496:0)
at Module.ɵɵproperty (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:15175:0)
at ImageCarouselComponent_Template (file: src/webpack:/mandy/src/app/features/thread/image-carousel.component.ts:32:21)
at executeTemplate (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:12113:0)
at refreshView (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:11998:0)
at refreshComponent (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:13072:0)
at refreshChildComponents (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:11788:0)
at refreshView (file: src/webpack:/mandy/node_modules/@angular/core/fesm2015/core.mjs:12048:0)
ERROR TypeError: Cannot set properties of undefined (setting 'selectedIndex')
I already found https://github.com/nativescript-community/ui-pager/issues/34 and https://github.com/nativescript-community/ui-pager/pull/35 which seems to solve a similar issue, but it seems to have no effect on the deprecated function that is causing issues now.
Is this a known issue? Will there be a fix for current Angular versions?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the error with the listed @nativescript-community/ui-pager, @nativescript/angular, and @angular/core versions. Start by inspecting the pager Angular integration referenced at nativescript-community-ui-pager-angular.mjs:47 and the failing binding in src/app/features/thread/image-carousel.component.ts:32. Done means the pager works with current Angular versions without the isListLikeIterable or selectedIndex errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100