Sean-Der / fail2web

a fail2ban GUI powered by fail2rest
536 stars 48 forks source link

[$injector:nomod] Module 'fail2web' is not available! #27

Closed iain17 closed 9 years ago

iain17 commented 9 years ago

[Error] Error: [$injector:modulerr] Failed to instantiate module fail2web due to: [$injector:nomod] Module 'fail2web' 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.3.2/$injector/nomod?p0=fail2web http://fail2web.repziw4.de/bundle.js:708:32 http://fail2web.repziw4.de/bundle.js:2392:32 ensure@http://fail2web.repziw4.de/bundle.js:2316:45 module@http://fail2web.repziw4.de/bundle.js:2390:20 http://fail2web.repziw4.de/bundle.js:4658:35 forEach@http://fail2web.repziw4.de/bundle.js:967:24 loadModules@http://fail2web.repziw4.de/bundle.js:4642:12 createInjector@http://fail2web.repziw4.de/bundle.js:4568:22 doBootstrap@http://fail2web.repziw4.de/bundle.js:2079:34 bootstrap@http://fail2web.repziw4.de/bundle.js:2100:23 angularInit@http://fail2web.repziw4.de/bundle.js:1994:14 http://fail2web.repziw4.de/bundle.js:26345:16 trigger@http://fail2web.repziw4.de/bundle.js:3337:9 eventHandler@http://fail2web.repziw4.de/bundle.js:3607:25 http://errors.angularjs.org/1.3.2/$injector/modulerr?p0=fail2web&p1=%5B%24injector%3Anomod%5D%20Module%20'fail2web'%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.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.2%2F%24injector%2Fnomod%3Fp0%3Dfail2web%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A708%3A32%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2392%3A32%0Aensure%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2316%3A45%0Amodule%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2390%3A20%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4658%3A35%0AforEach%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A967%3A24%0AloadModules%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4642%3A12%0AcreateInjector%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A4568%3A22%0AdoBootstrap%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2079%3A34%0Abootstrap%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A2100%3A23%0AangularInit%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A1994%3A14%0Ahttp%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A26345%3A16%0Atrigger%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A3337%3A9%0AeventHandler%40http%3A%2F%2Ffail2web.repziw4.de%2Fbundle.js%3A3607%3A25 (anonymous function) (bundle.js, line 4682) forEach (bundle.js, line 967) loadModules (bundle.js, line 4642) createInjector (bundle.js, line 4568) doBootstrap (bundle.js, line 2079) bootstrap (bundle.js, line 2100) angularInit (bundle.js, line 1994) (anonymous function) (bundle.js, line 26345) trigger (bundle.js, line 3337) eventHandler (bundle.js, line 3607) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (angular-animate.min.js.map, line 0)

Freshly built from repository, using debian 7. But clearly this is an angular issue which needs to be addressed in the latest version.

Sean-Der commented 9 years ago

Hi @iain17 thanks for the bug report!

This was not using the pre-built JS located at master/web/bundle.js ? If you are not trying to add new features, try that out to make things easier on yourself :)

If you are trying to dev, make sure the npm install and grunt run build didn't have any errors. If no errors, and you still have the same stack trace, I will try to provide some further debugging.

thanks!

djengineerllc commented 9 years ago

Just an fyi, I had an angular issue one time when using the npm install and then go run build. To fix it on my end, I ended up doing an "npm uninstall angular" and then an "npm install angular@1.2.23". Not sure if that helps or not.

djengineerllc commented 9 years ago

I did not try grunt run build. I'll have to check that out.

iain17 commented 9 years ago

the uninstall and install angular fixed it for me. Thanks both :+1:

Sean-Der commented 9 years ago

Awesome! thanks for the input @djengineerllc I will look into pinning angular to that version, I need to update libs anyway soon

djengineerllc commented 9 years ago

No problem. I was messing around with trying to get this working on Ubuntu as well as Debian, and I ran into that same issue.

-----Original Message----- From: "Sean DuBois" notifications@github.com Sent: ‎11/‎13/‎2014 10:06 To: "Sean-Der/fail2web" fail2web@noreply.github.com Cc: "Phillip Moore" phillipmoore@gmail.com Subject: Re: [fail2web] [$injector:nomod] Module 'fail2web' is not available!(#27)

Awesome! thanks for the input @djengineerllc I will look into pinning angular to that version, I need to update libs anyway soon — Reply to this email directly or view it on GitHub.=