ozp-demo

41 views
Skip to first unread message

ccl...@isenpai.com

unread,
Jun 28, 2018, 1:14:02 PM6/28/18
to ozoneplatform-users
Digging through the ozp-demo project on GitHub (https://github.com/aml-development/ozp-demo) and trying to get the locationListener app built, there seems to be a missing angular dependency called ozpIwcClient.  Any idea what happened to it or how to fix the error?

Uncaught Error: [$injector:modulerr] Failed to instantiate module LocationLister due to:
Error: [$injector:modulerr] Failed to instantiate module ozpIwcClient due to:
Error: [$injector:nomod] Module 'ozpIwcClient' 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.


https://errors.angularjs.org/1.7.2/$injector/modulerr?p0=LocationLister&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20ozpIwcClient%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'ozpIwcClient'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0A%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.2%2F%24injector%2Fmodulerr%3Fp0%3DozpIwcClient%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'ozpIwcClient'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttps%253A%252F%252Ferrors.angularjs.org%252F1.7.2%252F%2524injector%252Fnomod%253Fp0%253DozpIwcClient%250A%2520%2520%2520%2520at%2520file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A138%253A12%250A%2520%2520%2520%2520at%2520file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A2284%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A2205%253A38)%250A%2520%2520%2520%2520at%2520module%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A2282%253A14)%250A%2520%2520%2520%2520at%2520file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A5003%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A387%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A4987%253A5)%250A%2520%2520%2520%2520at%2520file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A5005%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A387%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(file%253A%252F%252F%252Fhome%252Fcclark%252Fdev%252Frepo%252Fozp-demo%252Fapp%252Fbower_components%252Fangular%252Fangular.js%253A4987%253A5)%0A%20%20%20%20at%20file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A138%3A12%0A%20%20%20%20at%20file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A5027%3A15%0A%20%20%20%20at%20forEach%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A387%3A20)%0A%20%20%20%20at%20loadModules%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A4987%3A5)%0A%20%20%20%20at%20file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A5005%3A40%0A%20%20%20%20at%20forEach%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A387%3A20)%0A%20%20%20%20at%20loadModules%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A4987%3A5)%0A%20%20%20%20at%20createInjector%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A4904%3A19)%0A%20%20%20%20at%20doBootstrap%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A1936%3A20)%0A%20%20%20%20at%20bootstrap%20(file%3A%2F%2F%2Fhome%2Fcclark%2Fdev%2Frepo%2Fozp-demo%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3A1957%3A12)
    at angular.js:138
    at angular.js:5027
    at forEach (angular.js:387)
    at loadModules (angular.js:4987)
    at createInjector (angular.js:4904)
    at doBootstrap (angular.js:1936)
    at bootstrap (angular.js:1957)
    at angularInit (angular.js:1842)
    at angular.js:35431
    at HTMLDocument.trigger (angular.js:3491)


kdrumm...@gmail.com

unread,
Jun 29, 2018, 9:11:22 AM6/29/18
to ozoneplatform-users
Try running 'bower install' before you try to start it.

ccl...@isenpai.com

unread,
Jun 29, 2018, 9:14:52 AM6/29/18
to ozoneplat...@googlegroups.com
I did.  It built the bower_components section that includes the ozp-iwc folder, but it still can not find the ozpIwcClient module.

Ozone Custodian

unread,
Jun 29, 2018, 9:41:29 AM6/29/18
to ozoneplatform-users
Update the ozp-iwc dependency in the ozp-demo bower.json file to match the following:

"ozp-iwc": "ozone-development/ozp-iwc#1.2.4",

The last two releases (v1.2.5 and v1.2.6) of the ozp-iwc package did not include the required 'dist' folder to properly install it using Bower. If you pin the version to 1.2.4, it should work as expected.

Let me know if this helps, and if you have any further questions.

ccl...@isenpai.com

unread,
Jun 29, 2018, 10:36:10 AM6/29/18
to ozoneplatform-users
Thanks!  I'll let you know how things work out.

ccl...@isenpai.com

unread,
Jun 29, 2018, 3:26:02 PM6/29/18
to ozoneplat...@googlegroups.com
Okay, so that seems to have worked, but another problem showed up that I've seen frequently:

Failed to load resource: the server responded with a status of 404 (Not Found)

It is caused by the fact that http://ozone-development.github.io/ozp-iwc/ is usually used as the iwcUrl, but it's a dead link. I went back to http://aml-development.github.io/ozp-iwc and that seemed to have fixed that error.  

In this tutorial page, you actually have both on there:  http://aml-development.github.io/ozp-iwc/1.2.2/tutorial/01_quickStart.html  The page that results in the 404 is in the text, but the aml-dev link is in the Codepen example

So I think now I'm at the point where my OZP noobiness is hampering me and I was wondering if I could get a couple of minutes of someone's time to figure out what to do next.  I think there's a big piece of the OZP process that I'm missing.

ccl...@isenpai.com

unread,
Jul 3, 2018, 7:50:38 AM7/3/18
to ozoneplat...@googlegroups.com
I moved past all that.  Now I have to figure out what to do with the fact that the locationViewer was built around MapQuest and their API has been turned off.  If it's worth my time, I'll switch it over to Bing or the Google.
Reply all
Reply to author
Forward
0 new messages