percolatestudio / meteor-google-api

A simple API encapsulating some common patterns regarding Google's APIs
https://atmospherejs.com/percolate/google-api
MIT License
48 stars 30 forks source link

Error: Already registered the google OAuth service #40

Closed marcoschwartz closed 7 years ago

marcoschwartz commented 7 years ago

Hello,

I got the following error since updating Meteor to 1.4.3.1:

Error: Already registered the google OAuth service

I guess it's coming from the fact that Meteor now uses google-oauth and not just google, and the google module therefore is installed two times... how to fix this? Thanks!

nunohvidal commented 7 years ago

+1

however I got this error today when I updated Meteor to 1.4.2.7

nunohvidal commented 7 years ago

@marcoschwartz I got around the issue by using a local version of the package and removing one of it's dependencies - google

Just add the package locally (see how below if you're not sure how to) and manually edit package.js file. What we need to change is in the call Package.on_use and change the google in api.use to google-oauth

From this

if (api.versionsFrom) {
    api.versionsFrom('0.9.0');
    api.use(['http', 'livedata', 'google', 'mrt:q@1.0.1', 'accounts-base', 'underscore']);
  }

to look like this

if (api.versionsFrom) {
    api.versionsFrom('0.9.0');
    api.use(['http', 'livedata', 'google-oauth', 'mrt:q@1.0.1', 'accounts-base', 'underscore']);
  }

I also changed the version in Package.describe from 1.0.3 to 1.0.3_1 so I know for sure I'm using the local package.

To use a local version of the package, download this package ZIP and unzip it to a folder names packages inside the folder of your Meteor app. Then do the changes described above, and add the package again meteor add percolate:google-api

if you changed the version as well you should get

meteor add percolate:google-api
percolate:google-api without a version constraint has already been added.

Changes to your project's package version selections:

google                removed from your project
percolate:google-api  upgraded from 1.0.3 to 1.0.3_1
allenfuller commented 7 years ago

I've just submitted a pull request to resolve this issue. Hopefully it works and the maintainers merge it in...

nunohvidal commented 7 years ago

thanks @allenfuller

allenfuller commented 7 years ago

Just checking in to see if anyone has heard any updates on this, or found another resolution?

tmeasday commented 7 years ago

Hi, we are no longer using this project, and thus it is unmaintained. Is someone interested in taking over maintenance?

ro6 commented 7 years ago

@tmeasday I can't put a lot of time into it, but I could take over maintaining the basics, merging PRs etc...

tmeasday commented 7 years ago

@ro6 I'll give you GH access and permission to publish, use wisely :)

tmeasday commented 7 years ago

@ro6 what is your MD username?

merlinstardust commented 7 years ago

@tmeasday do you have a recommendation as to another library/package that we should use?

tmeasday commented 7 years ago

No, sorry @merlinpatt

ro6 commented 7 years ago

@tmeasday ro6, same as GitHub

tmeasday commented 7 years ago

@ro6, added as a maintainer

adamgins commented 7 years ago

@ro6 wondering if you still planned to release your pull request?

ro6 commented 7 years ago

@adamgins Added the fix and released. Closing this for now, please let me know if you have any issues.