triniwiz / nativescript-pager

Apache License 2.0
90 stars 48 forks source link

Issue with new version "nativescript-pager": "^12.0.0-alpha.5”, #163

Open t0mhan opened 4 years ago

t0mhan commented 4 years ago

Getting following error in new version:

ERROR in ../node_modules/nativescript-pager/angular/index.js Module not found: Error: Can't resolve '@nativescript/angular' in '/Users/psingh/Desktop/projects/ts-internal/hsa-frontend/node_modules/nativescript-pager/angular' @ ../node_modules/nativescript-pager/angular/index.js 5:16-48 @ ./packages/frame.pck/frame.module.ts @ ./app.module.ts @ ./main.ts

ERROR in ../node_modules/nativescript-pager/angular/pager-items-comp.js Module not found: Error: Can't resolve '@nativescript/angular/element-registry' in '/Users/psingh/Desktop/projects/ts-internal/hsa-frontend/node_modules/nativescript-pager/angular' @ ../node_modules/nativescript-pager/angular/pager-items-comp.js 8:25-74 @ ../node_modules/nativescript-pager/angular/index.js @ ./packages/frame.pck/frame.module.ts @ ./app.module.ts @ ./main.ts

ERROR in ../node_modules/nativescript-pager/angular/pager-items-comp.js Module not found: Error: Can't resolve '@nativescript/angular/lang-facade' in '/Users/psingh/Desktop/projects/ts-internal/hsa-frontend/node_modules/nativescript-pager/angular' @ ../node_modules/nativescript-pager/angular/pager-items-comp.js 12:20-64 @ ../node_modules/nativescript-pager/angular/index.js @ ./packages/frame.pck/frame.module.ts @ ./app.module.ts @ ./main.ts

Which platform(s) does your issue occur on?

t0mhan commented 4 years ago

Working fine for "nativescript-pager": "^12.0.0-alpha.3",

imransilvake commented 4 years ago

I have encountered the same issue with aplha.5. its working with: "nativescript-pager": "^12.0.0-alpha.3",

triniwiz commented 4 years ago

What version of nativescript angular are y’all using .5+ suppose to be for usage with the scoped packages so let’s say 6.2+

imransilvake commented 4 years ago

My specification: "nativescript": { "tns-ios": { "version": "6.2.0" } },

Versions: Angular CLI: 8.3.21 Node: 13.5.0 tns: 6.2.2

lostation commented 4 years ago

--> Ouch !!! Crash issue caused by double NativeScriptModule import !!!! ... it seems there's also a import of NativeScriptModule into Nativescript-pager/angular/index.js