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

@nativescript-community/ui-pager version 13.0.21 not working in android #7

Closed
jitendraP-ashutec opened this issue May 17, 2021 · 3 comments

Comments

@jitendraP-ashutec
Copy link

Which platform(s) does your issue occur on?

  • Android
  • Android 9,10,11
  • emulator

Angular Version: 10.1.5
Nativescript/Angular version: 10.1.5
@nativescript/android verison: 8.0.0

Please, provide the following version numbers that your issue occurs with:

When I install latest version of @nativescript-community/ui-pager: 13.0.21 its gives the below error.

ERROR Error: Uncaught (in promise): TypeError: record.factory is not a function
JS: TypeError: record.factory is not a function
JS:     at R3Injector.hydrate (file: node_modules/@angular/core/fesm2015/core.js:11289:0)
JS:     at R3Injector.get (file: node_modules/@angular/core/fesm2015/core.js:11111:0)
JS:     at file: node_modules/@angular/core/fesm2015/core.js:11148:0
JS:     at Set.forEach (<anonymous>)
JS:     at R3Injector._resolveInjectorDefTypes (file: node_modules/@angular/core/fesm2015/core.js:11148:0)
JS:     at new NgModuleRef$1 (file: node_modules/@angular/core/fesm2015/core.js:24236:0)
JS:     at NgModuleFactory$1.create (file: node_modules/@angular/core/fesm2015/core.js:24290:0)
JS:     at MapSubscriber.project (file: node_modules/@angular/router/fesm2015/router.js:3484:0)
JS:     at MapSubscriber.push.../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (file: node_modules/rxjs/_esm5/internal/operators/map.js:35:0). ```
@OzymandiasTheGreat
Copy link

I also just ran into this issue. Downgrading to 13.0.20 seems to work so far.
For me, it's a bit different, it compiles, installs, and sorts of runs. The console stays clear of errors, but instead of my components in the app, I see a wall of text with this error.

As a side note, the same error is present in ui-material components past version 5.2.10 as described here

@OzymandiasTheGreat
Copy link

Ok, so for me it was due to outdated dependencies, in the package.json I had @angular packages pinned as ~11.0.0 from the starter template. Switching to ^ fixed the issue.

@keerl
Copy link
Contributor

keerl commented Sep 17, 2021

This should no longer be an issue. Plugin has been updated to Angular 12.2.0 and is working again using all the latest dependencies.

@keerl keerl closed this as completed Sep 17, 2021
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