how to solve 'no global paramater'
Beantworteti got message on console '[No global parameter rainbowSDK (no-global)] :: undefined' , how to solve that ?
-
Hi,
This means, the SDK wasn't loaded in global "window" in the Angular app
Please check your config.json if you have:
{ "libraries": { "prerequisites": [ "//code.jquery.com/jquery-2.1.3.min.js", "//cdn.jsdelivr.net/momentjs/2.15.1/moment-with-locales.min.js", "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.min.js" ], "sdk": { "official": [ "//api.openrainbow.com/sdk/web/libs/vendors-sdk.min.js", "//api.openrainbow.com/sdk/web/libs/rainbow-sdk.min.js" ], "default": "official" }, "after": [ ] },
...like described: https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/2-Loading_Angular_applications
Best regards,
Pascal -
Hi,
Do you mean using https://rubyonrails.org/ ? I am sorry I don't use/know this tool.
If you want a working example- you can download some from https://github.com/Rainbow-CPaaS there are several "StarterKit-SDKWeb-XXX"
- or follow the https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/1-Getting_Started which will also help you using npm
- or WITH the loader, follow what's written here: https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/6-Integrating_others_JS_frameworks
Pascal
-
config.json should be next to your index file.
An example may also be copied/pasted from there
https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/2-Loading_Angular_applications
-
Hi Muhammad,
If I check the reviews on the Chrome Store:
https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk/reviewsLot of people are complaining "it's not working". And this extension has no update since april 2017.
Could you perhaps try with "Batarang for RD": https://chrome.google.com/webstore/detail/batarang-for-rd/ojjloilnohmkjkdbdehlmakcgnmamojh which says
KC: Change existing Batarang in order run on chrome v61 and above
Regards,
Pascal
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare