community-app icon indicating copy to clipboard operation
community-app copied to clipboard

Cant access community app using ngrok url

Open jannomeister opened this issue 5 years ago • 1 comments

Description

I want to expose my local community app to the internet using ngrok.

Steps to Reproduce

  • run mifosX using the commands stated in the documentation
  • open a separate terminal and run ngrok http 9002 (the port where community app is running)
  • access using the given ngrok https url.

Expected Behaviour

I can access the community app using the ngrok url

Actual Behaviour

  • I received this error in the browser:
Error: Load timeout for modules: mifosX,angularui,angularuitpls
http://requirejs.org/docs/errors.html#timeout require.js:168:17
    makeError http://3e7e9131.ngrok.io/bower_components/requirejs/require.js:168
    checkLoaded http://3e7e9131.ngrok.io/bower_components/requirejs/require.js:696
    checkLoadedTimeoutId http://3e7e9131.ngrok.io/bower_components/requirejs/require.js:717

jannomeister avatar Jan 30 '20 02:01 jannomeister

Add waitSeconds to the loader config at /community-app/app/scripts/loader-build.js and /community-app/app/scripts/loader.js. The value should be 0, so requireJs will wait until all the modules are fully loaded.

Example.

require.config({
        waitSeconds: 0,
        paths: {}
});

iolufemi avatar Jul 29 '21 00:07 iolufemi