mdDataTable icon indicating copy to clipboard operation
mdDataTable copied to clipboard

Error: [$injector:modulerr] similar to issue #113

Open jvieyra92 opened this issue 8 years ago • 4 comments

Using npm and grunt, when running the "grunt watch" command it aborts with the error messages saying: Error: [$injector:modulerr] Failed to instantiate module myProject due to: Error: [$injector:modulerr] Failed to instantiate module mdDataTable due to: Error: [$injector:modulerr] Failed to instantiate module ngMdIcons due to: Error: [$injector:nomod] Module 'ngMdIcons' 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.5/$injector/nomod?p0=ngMdIcons

Installed with command: npm install md-data-table Added the dependency like so: angular.module('myProject', ['ngMaterial', "mdDataTable"]) ....

Not sure what is causing this error. Any ideas?

jvieyra92 avatar May 05 '16 23:05 jvieyra92

You need to add the angular-material-icons.min.js script to your HTML. Adding the following fixed the issue for me:

<script src="//cdnjs.cloudflare.com/ajax/libs/angular-material-icons/0.5.0/angular-material-icons.min.js"></script>

lrodriguezrullan avatar May 10 '16 19:05 lrodriguezrullan

I have the same problem here. DI doesn't work and I c an figure out what the problem is. All other dependencies work but if I add mdDataTable I get the following error. jquery.js:3855 Uncaught Error: [$injector:modulerr] Failed to instantiate module

(anonymous function) @ angular.js:68 (anonymous function) @ angular.js:4640 forEach @ angular.js:321 loadModules @ angular.js:4601 createInjector @ angular.js:4523 doBootstrap @ angular.js:1758 bootstrap @ angular.js:1779 angularInit @ angular.js:1664 (anonymous function) @ angular.js:31763 mightThrow @ jquery.js:3570 process @ jquery.js:3638

I also tried to add angular-material-icons but it doesn't change anything.

ralph-wermke avatar Nov 02 '16 10:11 ralph-wermke

I am also seeing the same issue, any resolution for this?

saifuddin123 avatar Nov 08 '16 18:11 saifuddin123

Me too I tried to qqd qngulqr -materil-icons but it doesn't change anything , someone has solution

aliridha1510 avatar Apr 19 '17 10:04 aliridha1510