Skip to content

Unknown provider #11

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

Closed
wwarlock opened this issue Apr 1, 2018 · 4 comments
Closed

Unknown provider #11

wwarlock opened this issue Apr 1, 2018 · 4 comments

Comments

@wwarlock
Copy link

wwarlock commented Apr 1, 2018

Just after install and running app with your plugin, angular started to get the next error.

Error: [$injector:unpr] Unknown provider: _0x159ca8Provider <- _0x159ca8 <- AppCtrl
http://errors.angularjs.org/1.6.9/$injector/unpr?p0=_0x159ca8Provider%20%3C-%20_0x159ca8%20%3C-%20AppCtrl
    at angular.js:116
    at angular.js:4887
    at Object.getService [as get] (angular.js:5047)
    at angular.js:4892
    at getService (angular.js:5047)
    at injectionArgs (angular.js:5072)
    at Object.invoke (angular.js:5098)
    at $controllerInit (angular.js:11076)
    at nodeLinkFn (angular.js:9939)
    at compositeLinkFn (angular.js:9248)
@raywu
Copy link

raywu commented May 30, 2018

@wwarlock did you use ngAnnotate prior to obfuscating? Either gulp-ng-annotate or babel-plugin-angularjs-annotate

@wwarlock
Copy link
Author

No, nothing from this in my project.
Am I must to use one of them?

@raywu
Copy link

raywu commented May 31, 2018

ngAnnotate helps you manage your dependency injection before obfuscator renames everything.

@wwarlock
Copy link
Author

wwarlock commented Jun 3, 2018

Allright, I'll try and reopen this issue if that dependencies wouldn't resolve my trouble,

@wwarlock wwarlock closed this as completed Jun 3, 2018
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

2 participants