maximepvrt / angular-google-gapi

An AngularJS module for using all Google Apis and your Google Cloud Endpoints (Google App Engine) with OAuth. This module uses Google APIs Client Library for JavaScript, available for all GApis.
176 stars 111 forks source link

Uncaught TypeError: Cannot read property 'then' of undefined #63

Closed borgoya closed 8 years ago

borgoya commented 8 years ago

Versions: angularjs- 1.4.7 angular-google-gapi- 0.1.3.

I got this error while testing on my local server as well as on google cloud. Uncaught TypeError: Cannot read property 'then' of undefined

Corresponding line no: GApi.load('projectendpoint','v1',BASE).then( function(resp) {

Please help me to resolve this issue.

borgoya commented 8 years ago

The issue can be resolved by totally omitting the anonymous function. But I think it will cause problems to my app. What should I do?

The new "angular-google-gapi-1.0.0-beta.1" has no such type of problem.

maximepvrt commented 8 years ago

yes, you must use angular-google-gapi-1.0.0-beta.1 :)