last day (15 days later) » 

6:14 AM
0
Q: Type 'Observable<>' is missing properties in Angular Nativescript

NabidI am facing this problem when it set my function as getCalendarEvents(): Observable<Array<CalendarEvent>>{. The error message shows like Type 'Observable<CalendarEvent[]>' is missing the following properties from type 'CalendarEvent[]': length, pop, push, concat, and 24 more. This is the service...

 
can you create a playground if possible ? That would be easier to debug.
 
is it possible to create playground in stackoverflow? I did not get your question! I am facing error in this line this._events = this._calendarApiService.getCalendarEvents();
 
play.nativescript.org use that to show your code. you can run on any device with the NS preview app
 
@NarendraMongiya How will I give you the link for taking a look at my code?
 
When you choose the template and edit, it will show you save button. After saving you can see the change in URL and you can copy that e.g. play.nativescript.org/?template=play-vue&id=cD3cYS
 
6:14 AM
 
It's not runnable code
Cannot find module './home/items.component'.
so many modules are missing
 
Ok Im checking
Do I need to upload node_modules also?
 
nope
no need to upload node_modules
if it is an external package then instal that package
 
6:32 AM
Error: com.tns.NativeScriptException: Failed to find module: "nativescript-socketio/angular", relative to: app/tns_modules/
facing this error
will I give you a github link>
?
 
 
3 hours later…
10:14 AM
????
 

last day (15 days later) »