question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

errors integrating with Ionic

See original GitHub issue

I am trying to get Permissions working with Ionic v1 but getting the following error:

ReferenceError: module is not defined

var _module = module || {};

Error: [$injector:modulerr] Failed to instantiate module app due to:
[$injector:modulerr] Failed to instantiate module permission due to:
[$injector:nomod] Module 'permission' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=permission

This is my app.js

angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services', 'app.directives', 'angular-locker', 'satellizer', 'permission'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {

And my index.html

    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>
    <script src="lib/angular-locker/dist/angular-locker.min.js"></script>
    <script src="lib/satellizer/satellizer.min.js"></script>
    <script src="lib/angular-permission/dist/angular-permission.js"></script>
    <script src="lib/angular-permission/dist/angular-permission-ui.js"></script>

Am I missing something obvious??

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
albvcommented, May 17, 2016
1reaction
jstroemcommented, May 17, 2016

First of, Bugs you should paste to stack overflow. Next, you include the same angular-permission.js file twice, you should include angular-permission-ui.js file aswell, since Ionic uses ui-router (right?). Last, sure that the files are loaded?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic Error Logging with Sentry using Capacitor - YouTube
Learn to integrate Sentry.io in your Ionic application to setup error logging for Ionic and Capacitor apps! Learn Ionic faster with...
Read more >
Error when integrating Ionic Auth service
I'm trying to integrate facebook login to my ionic 2 app. I was following the guide here and all is good until I...
Read more >
Error while integrating Auth0 in existing Ionic Cordova App
I'm trying to integrate Auth0 in my existing Ionic Cordova App. I am facing an issue while adding this statement - Auth0Cordova.
Read more >
10 Common Ionic Problems & Error Messages (And How to ...
We have all seen many error messages while developing our Ionic apps. Some appear more frequent, others appear only on very special ...
Read more >
Using Sentry - Error Monitoring with Ionic Angular Applications
You can monitor your application errors in Sentry's interface, categorize them as done or left, ... Integrate the Sentry with the Ionic Angular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found