Top

Can't load SDK on Angular8 app

Comments

7 comments

  • 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
    Comment actions 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
    Comment actions 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
    Comment actions 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
    Comment actions Permalink
  • Konrad Hyzy

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

    1
    Comment actions 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
    Comment actions 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
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message