Giter VIP home page Giter VIP logo

Comments (8)

jerbob92 avatar jerbob92 commented on June 16, 2024 4

I have updated the full repo to work with NS8 and have released version 3.0.1.

from nativescript-http.

saeb-panahifar avatar saeb-panahifar commented on June 16, 2024

Hi @pradumnk-mahanta. Webpack 5 has a minor changes.

"Changed hooks in NormalModuleFactory from waterfall to bailing, changed and renamed hooks that return waterfall functions"

It seems it maybe be change on NativeScriptHTTPPlugin source code.

from nativescript-http.

jerbob92 avatar jerbob92 commented on June 16, 2024

I'm looking into a NS8 version soon.

from nativescript-http.

jerbob92 avatar jerbob92 commented on June 16, 2024

I have just released version 3.0.0 to support NS8 and also updated the readme.

from nativescript-http.

pradumnk-mahanta avatar pradumnk-mahanta commented on June 16, 2024

@jerbob92 Thank you for your prompt support. I wasn't expecting NS 8 Version for another month or so.

I implemented this as per the docs, however I am getting the following error on API Calls, which work fine without the plugin enabled in the Webpack.

Error while parsing debug `response` object. Error: BINDINGS: string value expected
CONSOLE ERROR: ERROR TypeError: Cannot read property 'originalStack' of null
Error while parsing debug `response` object. Error: BINDINGS: string value expected
Error while parsing debug `response` object. Error: BINDINGS: string value expected
CONSOLE ERROR: ERROR TypeError: Cannot read property 'originalStack' of null

I am assuming it is still in progress, so I will wait a bit more. Do let me know if you need any other details form my end.

from nativescript-http.

jerbob92 avatar jerbob92 commented on June 16, 2024

@jerbob92 Thank you for your prompt support. I wasn't expecting NS 8 Version for another month or so.

I implemented this as per the docs, however I am getting the following error on API Calls, which work fine without the plugin enabled in the Webpack.

Error while parsing debug `response` object. Error: BINDINGS: string value expected
CONSOLE ERROR: ERROR TypeError: Cannot read property 'originalStack' of null
Error while parsing debug `response` object. Error: BINDINGS: string value expected
Error while parsing debug `response` object. Error: BINDINGS: string value expected
CONSOLE ERROR: ERROR TypeError: Cannot read property 'originalStack' of null

I am assuming it is still in progress, so I will wait a bit more. Do let me know if you need any other details form my end.

I tested it yesterday in NS8, and it worked fine. However, there is indeed some work to do, in the demo's and the Angular implementation. I will look into that today.

Can you tell me how you are doing the requests? So I can try to reproduce?

from nativescript-http.

pradumnk-mahanta avatar pradumnk-mahanta commented on June 16, 2024

Hi @jerbob92, I am using Angular Calls.

GetCompanies(entityMapping): any {
    return this.http.post(AppData.URL_API + AppData.URL_API_SUB + "getCompanies", entityMapping, { observe: 'response' });
}

then I subscribe to this function from wherever I need to make the call.

this.verificationService.GetCompanies({ "BusinessEntity": AppData.BUSINESS_ENTITY })
    .subscribe((response) => {

    });

UPDATE: It works on [email protected]. I was on [email protected] fixed and it did not work and provided the ERROR as I shared. I updated my Webpack version to "@nativescript/webpack": "beta" and it fetched the latest version of the Webpack and everything seems to be working now.

So maybe it was a Webpack issue. I'll test on this more and confirm everything for you.

from nativescript-http.

jerbob92 avatar jerbob92 commented on June 16, 2024

Thanks for testing :)
Everything else in the project is still NS7, so also the Angular module, so it might be possible some things are broken. I'll update verything to NS8/Angular 12 today. It does sound odd to me that NS8 uses a beta version of @nativescript/webpack, but that's also what the templates do.

from nativescript-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.