Top

Can't load SDK on Angular8 app

Kommentare

7 Kommentare

  • Konrad Hyzy

    Hi,

     

    at the moment Rainbow Web SDK doesn't come as ES Module, therefore you can't import a rainbowSDK variable to your application. 

    In order to find out how to add Rainbow Web SDK to your app, please check our documentation: 

    https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/Getting_Started

     

    You can also use Angular starter kit which will allow you to kickstart a new project with a fully set-up SDK: https://github.com/Rainbow-CPaaS/StarterKit-SDKWeb-Angular2

     

    Best Regards,

    Konrad

    0
    Aktionen für Kommentare Permalink
  • Josep Mª Mor Vals

    Hi Konrad,

    I'm using rainbow-node-sdk, not rainbow-web-sdk, is this right for developing a server angular app?

    I'm confused with the uses of each sdk. Can I use rainbow-web-sdk anyway from my server app?

    0
    Aktionen für Kommentare Permalink
  • Marc EGOLF

    Hi Josep,

    For Angular 8 developments you need to use the Rainbow Web SDK.

    https://www.npmjs.com/package/rainbow-web-sdk

     

    Best Regards
    Marc

    0
    Aktionen für Kommentare Permalink
  • Daryll WONG

    Hi I also face a similar problem when I installed rainbow-node-sdk to my react website.


    This is my error:
    Module not found: Can't resolve 'mock-socket' in 'C:\Users\daryl\Desktop\test-web-app\node_modules\rainbow-node-sdk\lib\connection'

     

    May I know what is wrong and how can i resolve it?

    Marc EGOLF @Konrad Hyzy

    1
    Aktionen für Kommentare Permalink
  • Konrad Hyzy

    You should instal Rainbow Web SDK, not Rainbow Node SDK for React apps.

    1
    Aktionen für Kommentare Permalink
  • Daryll WONG

    Konrad Hyzy thanks for the prompt reply. I want to use the node sdk in particular because it has "createGuestAccount" which the websdk does not have. So you are saying I definitely cant use the node sdk for react apps?

    0
    Aktionen für Kommentare Permalink
  • Konrad Hyzy

    You can create Node application to use the features presented by Rainbow Node SDK and then use React with Rainbow Web SDK to fill the rest of your needs.

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie können immer noch nicht finden, was Sie brauchen?

  • Kontaktieren Sie uns

    Haben Sie eine Frage zu Rainbow? Hinterlassen Sie uns eine Nachricht, um weitere Informationen zu erhalten.

    Kontakt
  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten