Errors of "Cannot find module" Seen When Calling Mobile API Gateway
book
Article ID: 96527
calendar_today
Updated On:
Products
CA API Gateway
Issue/Introduction
- 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.
Feedback
thumb_up
Yes
thumb_down
No