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

ERROR: isListLikeIterable() is not a function in @nativescript/angular #51

Open
floriandammeyer opened this issue Jan 11, 2024 · 2 comments

Comments

@floriandammeyer
Copy link

With these versions installed:

@nativescript-community/[email protected]
@nativescript/[email protected]
@angular/[email protected] 

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 #34 and #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?

@guillemc23
Copy link
Contributor

guillemc23 commented Jan 11, 2024

I think you'll have to bump to Angular 16+ or roll back this plugin. For me, sticking to Angular 16 and [email protected] works fine 👍🏻

@timoschlueter
Copy link

@guillemc23: your comment saved me today. thank you!
but it is kind of strange that we have to specify versions that hard. Does not really fit into semantic versioning from my perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants