RafaelVidaurre / angular-permission

Simple route authorization via roles/permissions
MIT License
1.13k stars 212 forks source link

Uncaught TypeError: angular.module(...).decorator is not a function #404

Closed lukascamargo closed 7 years ago

lukascamargo commented 7 years ago

Hello Guys,

I am getting the error below when starting the application. The error happens after importing the angular-permission files at index.html.

Uncaught TypeError: angular.module(...).decorator is not a function at angular-permission.min.js:11 at angular-permission.min.js:11 (anonymous) @ angular-permission.min.js:11 (anonymous) @ angular-permission.min.js:11

I imported the angular-permission.min.js, angular-permission-ui.min.js and angular-permission-ng.min.js. The error message appears for all of them.

I've searched on google the solution for this problem and it says only to update my Angular version to 1.4 or higher. But my version is 1.6.4 :(

Does anyone knows how to solve this?

Thank you!