nativescript-background-http icon indicating copy to clipboard operation
nativescript-background-http copied to clipboard

Class constructor Observable cannot be invoked without 'new'.

Open brandonjones085 opened this issue 4 years ago • 5 comments

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.

  • CLI: 7.0.10
  • Cross-platform modules: I was not able to find
  • Runtime(s): Android 7.0.1
  • Plugin(s): "devDependencies": { "@angular/compiler-cli": "~10.1.0", "@nativescript/android": "7.0.1", "@nativescript/types": "~7.0.0", "@nativescript/webpack": "~3.0.0", "@ngtools/webpack": "~10.1.0", "typescript": "~4.0.0" },

When I submit the form and run the onSave() function, the issue occurs. I attached the full repo below. https://github.com/brandonjones085/pupapp

brandonjones085 avatar Nov 08 '20 14:11 brandonjones085

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

brandonjones085 avatar Nov 14 '20 09:11 brandonjones085

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

skmani avatar Nov 23 '20 12:11 skmani

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

skmani avatar Nov 24 '20 16:11 skmani

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

Motyldrogi avatar Dec 03 '20 07:12 Motyldrogi

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

praveen696 avatar Sep 22 '21 06:09 praveen696