javascript - Angularjs (Error: $injector:modulerr Module Error) on concatenating bower components? -


when i'm concatenating bower_components of angularjs (angular & ui-router) using grunt,

i (error: $injector:modulerr module error) complete error here https://goo.gl/0yz6pm

on built script.

i not error when i'm using script source directly bower_components

therefore think it's issue concatenation grunt.

below grunt script,

grunt.initconfig({      concat:{          options: {         },         dist: {           // files concatenate           src: ['client/bower_components/angular/angular.min.js','client/bower_components/angular-ui-router/release/angular-ui-router.min.js'],           // location of resulting js file           dest: 'client/bower_components/../assets/scripts/corescript.js',           nonull: true         }      }     })     grunt.loadnpmtasks('grunt-contrib-concat');   grunt.registertask('build',['concat']);  } 

i've tried using seperator:';' in options no help.

what can make concatenation work here?

this setup looks fine, assuming script references correct , referencing corescript.js on page. issue can see here call .registertask. observe implementation

grunt.registertask('build','concat']); 

however, grunt expecting task array

grunt.registertask('build', ['concat']); // close array [ 

could task not running because of issue? not seeing call readjson. missing following in gruntfile.js declaration?

grunt.initconfig({     pkg: grunt.file.readjson('package.json'),     concat: {         // ...     } }); 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -