Top

Can't load SDK on Angular8 app

Commentaires

7 commentaires

  • 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
    Actions pour les commentaires Permalien
  • Konrad Hyzy

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

    1
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message