Failed to instantiate module ManageIQ.toolbar due to:

euwe

#1

My operating system: centos7.2
My browser: Google chrome

I git clone -b euwe-1 https://github.com/ManageIQ/manageiq
bin/setup
rails s

“Miq-toolbar-menu” is missing,how to solve this problem?

As shown in the picture below:

Error message:

Uncaught Error: [$injector:modulerr] Failed to instantiate module ManageIQ.toolbar due to:
Error: [$injector:modulerr] Failed to instantiate module miqStaticAssets due to:
Error: [$injector:modulerr] Failed to instantiate module miqStaticAssets.dialogEditor due to:
Error: [$injector:modulerr] Failed to instantiate module ui.sortable due to:
Error: [$injector:nomod] Module ‘ui.sortable’ 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.11/$injector/nomod?p0=ui.sortable
at http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:69:12
at http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:2134:17
at ensure (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:2058:38)
at module (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:2132:14)
at http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:4670:22
at forEach (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:326:20)
at loadModules (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:4654:5)
at http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:4671:40
at forEach (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:326:20)
at loadModules (http://localhost:3000/assets/angular/angular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js?body=1:4654:5)
http://errors.angularjs.org/1.5.11/$injector/modulerr?p0=ui.sortable&p1=Error%3A%20[%24injector%3Anomod]%20Module%20’ui.sortable’%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. http%3A%2F%2Ferrors.angularjs.org%2F1.5.11%2F%24injector%2Fnomod%3Fp0%3Dui.sortable %20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A69%3A12 %20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A2134%3A17 %20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A2058%3A38) %20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A2132%3A14) %20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A4670%3A22 %20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A326%3A20) %20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A4654%3A5) %20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A4671%3A40 %20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-a4ec94b978004b45127819f4f8dda67f742334b1e952c2dc446a327714b45fb5.js%3Fbody%3D1%3A326%3A20) %20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fassets%2Fangular%2Fangular.self-


#2

The problem should go away if you check out euwe and not euwe-1.

It was fixed by https://github.com/ManageIQ/manageiq/pull/13750 which is not in euwe-1.

(Alternatively, it’s a one line change, so you can just do the same, and run bin/update.)


#3

Great, your answer is perfect to solve my problem. Thank you very much.