Errors of "Cannot find module" Seen When Calling Mobile API Gateway

Document ID : KB000096527
Last Modified Date : 16/05/2018
Show Technical Document Details
Issue:
  • I am making a call in an application via Ionic to the CA Mobile API Gateway ("MAG") and receive an error beginning with "Cannot find module".
    • For example: "Cannot find module /PopupUI"
Environment:
  • Users of the CA Mobile API Gateway
Cause:
  • This is typically caused when calls are made before all of the application/mobile components are loaded.
Resolution:
  • It is important to ensure calls are being made after all components are load/operational.
  • Once the components are all loaded in the application and MAG, the calls should succeed without the "Cannot find module" errors.