nativescript-background-http
nativescript-background-http copied to clipboard
Class constructor Observable cannot be invoked without 'new'.
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
I want able to correct this on my end by installing tns version 6.8
i am facing the same issue. is there any update on this?
any other workaround for this issue? I am new to the native script. any other way to upload videos?
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
Check this example for NativeScript 7 https://github.com/NativeScript/plugins/blob/main/tools/demo/background-http/index.ts