NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
101 stars 50 forks source link

Class constructor Observable cannot be invoked without 'new'. #274

Open brandonjones085 opened 3 years ago

brandonjones085 commented 3 years ago

When I submit the form, I keep getting the error Class constructor Observable cannot be invoked without 'new'. I've tried changing the compilerOptions target to es5 and es2017, but nothing changed.

I'm running this on an Android, Galaxy 7 that's plugged in.

brandonjones085 commented 3 years ago

I want able to correct this on my end by installing tns version 6.8

skmani commented 3 years ago

i am facing the same issue. is there any update on this?

skmani commented 3 years ago

any other workaround for this issue? I am new to the native script. any other way to upload videos?

Motyldrogi commented 3 years ago

Found the question on stackoverflow from @brandonjones085 and got it working by changing to the new repo like in this answer https://stackoverflow.com/a/65038416/14447960

praveen696 commented 2 years ago

Check this example for NativeScript 7 https://github.com/NativeScript/plugins/blob/main/tools/demo/background-http/index.ts