Ionic-Material icon indicating copy to clipboard operation
Ionic-Material copied to clipboard

Demo Failed to instantiate module

Open DannyGokey opened this issue 9 years ago • 5 comments

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

how can i fix it?

DannyGokey avatar Jun 16 '15 09:06 DannyGokey

I also had same experience, please see issue #11. The demo using older version of ionic-material, use bower to update. And also, change the index.html file from

<link href="lib/ionic-material/ionic.material.min.css" rel="stylesheet">
<script src="lib/ionic-material/ionic.material.min.js"></script>

to

<link href="lib/ionic-material/dist/ionic.material.min.css" rel="stylesheet">
<script src="lib/ionic-material/dist/ionic.material.min.js"></script>

Hope this help.

niwasmala avatar Jun 20 '15 10:06 niwasmala

doesn't work for me. i fix this by copy bower-component/ionic-material to www/lib and replace it.. then it worked...

maybe these files are not the same version.

DannyGokey avatar Jul 04 '15 00:07 DannyGokey

Hi, These 4 steps work for me.

Step 1:

bower install ionic-material

Step 2:

Copy folder /ionic-material/dist to /ionic-material/demo/www/lib/ionic-material

Step 3:

Change the /ionic-material/demo/www/index.html file

from

to

Step 4:

run ionic serve --lab or ionic serve

Done!

Hope this help.

geoffreyporto avatar Jul 04 '15 21:07 geoffreyporto

Change the /ionic-material/demo/www/index.html file from to

What do you mean?

zigzag-way avatar Aug 27 '15 12:08 zigzag-way

Is this the true solution though? I've used the files created by the bower install and I still get the same error. I did go read at:

https://docs.angularjs.org/error/$injector/unpr?p0=ionicMaterialInkProvider%20%3C-NaNonicMaterialInk%20%3C-%20LoginCtrl

Is one perhaps suppose to make some JS change as well?

0v3rst33r avatar Jan 06 '16 15:01 0v3rst33r