-
Notifications
You must be signed in to change notification settings - Fork 84
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
Minification breaks userapp-angular #11
Comments
Hi! |
Same issue here with gulp. Is this going to be fixed? |
I had the same problem, fixed it with below code. myApp.run(['user', |
Tested only with `gulp-uglify`, but should work with anything. Fixes userapp-io#11
a year later and crickets |
@jgangemi my pull request fixes this. All they needed to do was merge it. You can use my fork if you want. |
yeah - that's what i'm about to do. i'm just annoyed that they can't integrate this into the main line, it's been over a year. |
The lastest update to the repository was over a year ago. I wonder if they're interacting on the other issues. Tbh I had one (horrible) experience using UserApp and stopped using it since then, and don't plan on returning. |
what did you do for an alternative? |
@jgangemi We started using Auth0 where I work. At least they seem to keep their plugins updated and working |
@viniciusmelquiades thanks! i came across them yesterday as well and will be dropping userapp, especially after i kept getting constant errors on their website last night trying to do some things. |
@jgangemi they have some very cool features, even for free users. I'm glad I could help |
Hi,
After a lengthy debugging session on my own app I was able to isolate a problem I was having to the UsesApp-Angular module.
To try and proof that it was not my code I used the example app code from this repo and the same issue occurred.
The Issue: When you minnify and combine js sources angular moans about "Unknown Provider"
My Setup:
Using Gulp I minify and combine the example using gulp-useref and gulp-uglify then start the app using gulp-connect. The App fails with the standard angular provider error:
From my experience this is mostly caused by the injector, which is unable to find the module to inject, when a minifier changes variable names and thus changes the name the injector will search for, usually this is easily solved by using the array syntax when defining controllers, services and the like ie
Unfortunately up to now I am still unable to find the erroneous module.
Been spending a few days on this now. Hope some one can help with this. I will try and continue to find out what the issue might be.
The text was updated successfully, but these errors were encountered: