Friday 31 August 2018

Uncaught Error: [$injector:modulerr] when using Angular JS with planet 9

I am getting the below error, Once I used Angularjs in planet 9.
Planet 9 is a tool build on top of sap ui5, which includes drag and drop along with we can also include html, css, js.
Hence for an application I had a need of ng-repeat kind of thing. So I thought of using AngularJS. where I can use the routing from that tool. I will not use the route from angular js. So, not necessary to load ngRoute. I checked the solution in SO for the above error. almost every answer was saying to use ngRoute. Even after adding ngRoute, no luck.
What I feel is, angular application is trying to initialize before angular js script loaded. But i am not sure that is the issue. But i am not able to see any angular js related functionality working. But sometimes depends on the internet speed, it will work.
Even i thought of bootstrapping the angular application manually. But that tool has already added ng-app="angularApp" by default. What is causing the below error, If the manual bootstrapping is the solution for this, how to remove that first ng-app auto bootstrap then do manual bootstrap once the necessary angular js is loaded.

angular.min.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.6/$injector/modulerr?p0=angularApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.5.6%2F%24injector%2Fnomod%3Fp0%3DangularApp%0A%20%20%20%20at%20http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A6%3A412%0A%20%20%20%20at%20http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A25%3A235%0A%20%20%20%20at%20b%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A24%3A282)%0A%20%20%20%20at%20http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A25%3A20%0A%20%20%20%20at%20http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A39%3A374%0A%20%20%20%20at%20q%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A7%3A355)%0A%20%20%20%20at%20g%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A39%3A222)%0A%20%20%20%20at%20db%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A43%3A246)%0A%20%20%20%20at%20c%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A21%3A19)%0A%20%20%20%20at%20Ac%20(http%3A%2F%2F10.37.142.201%3A8080%2Fmedia%2Froot%2Fhurricane%2Fjs%2Fangular.min.js%3A21%3A332)
at angular.min.js:6
at angular.min.js:40
at q (angular.min.js:7)
at g (angular.min.js:39)
at db (angular.min.js:43)
at c (angular.min.js:21)
at Ac (angular.min.js:21)
at fe (angular.min.js:20)
at HTMLDocument.<anonymous> (angular.min.js:315)
at p (sap-ui-core.js:127)

Error which i got when i used Uncomp

Uncaught Error: [$injector:modulerr] Failed to instantiate module angularApp due to:
Error: [$injector:nomod] Module 'angularApp' is not available! You either 
misspelled the module name or forgot to load it. If registering a module 
ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.7/$injector/nomod?p0=angularApp

Could anyone please help me.



from Uncaught Error: [$injector:modulerr] when using Angular JS with planet 9

No comments:

Post a Comment