generator-gulp-angular
                                
                                 generator-gulp-angular copied to clipboard
                                
                                    generator-gulp-angular copied to clipboard
                            
                            
                            
                        Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function
Under development all works fine, but when I try to build the source, I got this error.
I added backbone, and underscore as dependencies.
Any tip, where I can statrt debugging?
What I found: Partials are not generated between a closure, and on initilialitzation there is a race, they try to register on module, but this is still not created, for solving this, I edited, gulp/build,js task partials:
.pipe($.angularTemplatecache('templateCacheHtml.js', {
  module: 'mnt',
  root: 'app',
  templateHeader: '(function() { angular.module("<%= module %>"<%= standalone %>).run(["$templateCache", function($templateCache) {',
 templateFooter: '}]);})();'
}))
Added: (function(){ (templatecode) ;})() Also I found that all generated code within closures, must end with ; If not, build, failes to execute.
You really give not enough info. What options, what fails in generating partials? If the partials task fail, there is no way the bundle could work.
It's not the partials failing... the partials works... but the generated app.js... on the templatecache, has no proper closure, and when the browser parses the file, as its trying to inject templatecache, in a uninitalized module, it fails.. Adding, the closure to the templateHeader, and templateFooter, makes it work.
I have the same problem. May I know how did you solve this problem please.
Where should I add "(function(){ (templatecode) ;})()"
Meet same problem.
I had the same problem, to solve this, make sure to add ';' at the end of  each (function(){ (templatecode) ;})();