VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 258 forks source link

Does this module work with Angular 1.3+ ? #37

Closed sparkyfen closed 9 years ago

sparkyfen commented 9 years ago

Has anyone had luck using this module with Angular 1.3+ when minifying their code?

I'm using Grunt for my production environment to concat all the vendor files together.

When loading up the app, I get the following error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:modulerr] Failed to instantiate module vcRecaptcha due to:
Error: [$injector:nomod] Module 'vcRecaptcha' 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.

I was having a previous issue with a different module ngDialog. However, after updating from 0.3.4 to 0.3.9 which is the latest, the similar error I'm getting for this module disappeared and now the error is showing up for this module.

To be a bit more clear, my code works great in development. Only when concat/minification/uglify happens does the error appear.

An example of my index.html and app.js file can be found in the ngDialog link above.

$ bower --version
1.3.12
$ bower list
bower check-new     Checking for new versions of the project dependencies..
myApp#0.0.1 /Users/user/Documents/myApp
├── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
├─┬ angular-animate#1.3.1 (1.3.12-build.33+sha.d1b6480 available, latest is 1.4.0-build.3807+sha.b3a9bd3)
│ └── angular#1.3.1 (latest is 1.4.0-build.3807+sha.b3a9bd3)
├─┬ angular-chosen-localytics#1791dcfd23
│ ├── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── chosen#e-tag:3faf39b4e
├─┬ angular-cookies#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├─┬ angular-google-maps#2.0.7 (2.0.12 available)
│ ├── angular#1.3.1
│ └── lodash#2.4.1 (latest is 3.0.0)
├── angular-meta#0.2.0
├─┬ angular-mocks#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├─┬ angular-moment#0.9.0
│ ├── angular#1.3.1 (1.3.12-build.33+sha.d1b6480 available, latest is 1.4.0-build.3807+sha.b3a9bd3)
│ └── moment#2.9.0
├── angular-payments#2472bc9bef
├─┬ angular-recaptcha#2.1.1
│ └── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
├─┬ angular-resource#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├─┬ angular-route#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├─┬ angular-sanitize#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├─┬ angular-scenario#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular#1.3.1
├── es5-shim#3.0.2 (latest is 4.0.5)
├── font-awesome#4.2.0 (4.3.0 available)
├── jquery#1.11.1 (1.11.2 available, latest is 2.1.3)
├── json3#3.3.2
├── lodash#2.4.1 (latest is 3.0.0)
├─┬ ng-breadcrumbs#0.4.1
│ ├── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
│ └── angular-route#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
├─┬ ngDialog#0.3.9
│ └── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
├─┬ ngcart#0.0.2-rc.1.0
│ └── angular#1.3.1 (1.4.0-build.3807+sha.b3a9bd3 available)
└── oauth-js#0.3.0 (latest is 0.4.0)

Thanks for taking a look!

sparkyfen commented 9 years ago

Sorry, this appears to be an issue with oauth-js module.