Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ermamud opened this issue Oct 19, 2015 · 0 comments
Open

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

ermamud opened this issue Oct 19, 2015 · 0 comments

Comments

@ermamud
Copy link

ermamud commented Oct 19, 2015

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant