Getting error while adding external JS file into the mobile Application Screen

Hi I am using external JS files into the screen under required JS  for some reasons. When I publish its fine but when I tried to open into real mobile device I am getting following error on application load.

Error detail

Module name "crypto" has not been loaded yet for context: _. Use require([])

eSpaceVer: Id=197, PubId=0, CompiledWith=
RequestUrl: https://envioenment/AIOCRDemo/moduleservices/log?clientTimeInMillis=1586266605151 (Method: POST)
AppDomain: /LM/W3SVC/3/ROOT/AIOCRDemo-243-132307399775849565
FilePath: C:\OutSystems\Sandboxes\HKBTMX000\Platform Server\running\AIOCRDemo\
DeviceUUID: 9f1f9c92bcd578d6
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 4228 ('w3wp', Started='2/12/2020 11:55:34 AM', Priv=678Mb, Virt=2117093Mb)
TID: 30
Thread Name:
.NET: 4.0.30319.42000
DeviceModel: RMX1851
DeviceUUID: 9f1f9c92bcd578d6
OperatingSystem: Android 10
NativeShell: 8.2.4
AppVersionCode: 1
AppVersionName: 0.1
NetworkStatus: Online
NetworkType: LTE
Cordova: 8.1.0
Client-Side Log

Error: Module name "crypto" has not been loaded yet for context: _. Use require([])
    at makeError (
    at Object.o [as require] (
    at requirejs (
    at https://Environment/AIOCRDemo/scripts/AIOCRDemo.tfjs.js?YxyS+HwGPawe877rcjB7Ow:2:88410
    at Mn (

Please help me

Thanks & Regards,

Dileep Verma

Hi Dileep,

Your external js file have dependency which need to be loaded before your function call. Kindly check that all files loaded and function call are in a sequence .

Hope this helps!!!!


Ali Amin


Hi Dileep,

May I know how you are icluding external js file on your screen.

You should use RequireScript client action from system espace on oninitialize or onready event or the screen. This action will resolve your issue because if axecution flow will continue only after script is loaded and it will also handle multiple call for same external script URL. 

You can also check its details on below documentation link

Hi Dileep,

Even I am facing the same issue in Reactive App. Did you found any solution for it?

Please help me.


Bhagyashree S.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.