marcoslin / angularAMD

Facilitate use of RequireJS in AngularJS
http://marcoslin.github.io/angularAMD
MIT License
734 stars 171 forks source link

Optimization for AngularAMD + RequireJS using r.js not working #157

Open ermamud opened 9 years ago

ermamud commented 9 years ago

Hi,

I am trying to optimize a project using r.js. For the project I am using requireJs with Angular and AngularAMD using ui-router. My build config file for r.js is:

({
    appDir: "AngularSPA/apps/",
    mainConfigFile: 'AngularSPA/main.js',
    dir: "AngularSPA_build",
})

The project is getting minified and optimized good but Its not working. I am getting an Angular error:

Error: $injector:modulerr Module Error
Failed to instantiate module mainApp due to:
Error: [$injector:modulerr]

Please, can you help how to solve this issue ?

Thank you,