dotnetdreamer/nativescript-http-formdata

Error in Nativescript 8 - Class constructor Observable cannot be invoked without 'new'

ferleysilva opened this issue · 5 comments

@dotnetdreamer @Fr3nky88 I am using the plugin with version 3.0.0 & 3.0.1 with nativescript 8 and when I try to instantiate the class
var httpFormData = new TNSHttpFormData() I get the error: Class constructor Observable cannot be invoked without 'new'

Hello folks, @Fr3nky88 @dotnetdreamer do u have any idea how to solve this? I got the same problem, I was checking the commits by @Fr3nky88 with the upgrade to NS 8, and everything seems to be ok, pero really it does not work, and also in my project is not working.

@ferleysilva have you found any solution for this by yourself?

Hi guys did you have the same error in the Angular demo app?
I'm sorry but i stopped work on nativescript project, but in this days i can check.

Same error, trying to use in a Svelte Native:

JS: TypeError: Class constructor Observable cannot be invoked without 'new'

@dotnetdreamer thank you for this plugin, this should fix it: #41
We'd be happy to continue maintaining this with you as primary author credit always if you'd like.

If able to publish a major version with the updates would be appreciated.
Just be sure you have:

cd src
npx rimraf node_modules package-lock.json
npm run build

Or we can move it under scope and publish an update this week.

thank you. It seems fine now. I will publish it today soon 👍