Updated accounts-spotify or accounts-instagram?

I’m trying to add spotify and instagram logins to my project and every package I try has constraint conflict errors, does anyone know any alternatives?

Sure, you can build your own or if you give some more details about the constraints conflicts perhaps someone here can help you.

=> Errors while adding packages:

While selecting package versions:
error: Conflict: Constraint accounts-base@1.1.2 is not satisfied by accounts-base 2.0.1.
Constraints on package β€œaccounts-base”:

  • accounts-base@2.0.1 ← top level
  • accounts-base@~2.0.1 ← top level
  • accounts-base@1.7.1 || 2.0.0 ← apollo 4.1.0
  • accounts-base@2.0.0 ← service-configuration 1.1.0
  • accounts-base@2.0.0 ← accounts-password 2.0.0
  • accounts-base@2.0.0 ← accounts-twitter 1.5.0
  • accounts-base@2.0.0 ← accounts-oauth 1.3.0 ← accounts-facebook 1.3.3
  • accounts-base@2.0.0 ← accounts-facebook 1.3.3
  • accounts-base@1.7.1 || 2.0.0 ← bozhao:link-accounts 2.4.0
  • accounts-base@1.1.2 ← xinranxiao:accounts-spotify 1.0.2

Conflict: Constraint oauth@1.1.2 is not satisfied by oauth 2.0.0.
Constraints on package β€œoauth”:

  • oauth@2.0.0 ← top level
  • oauth@~2.0.0 ← top level
  • oauth@2.0.0 ← accounts-oauth 1.3.0 ← accounts-facebook 1.3.3
  • oauth@2.0.0 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • oauth@2.0.0 ← oauth1 1.4.1 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • oauth@2.0.0 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • oauth@2.0.0 ← oauth2 1.3.1 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • oauth@1.3.2 || 2.0.0 ← bozhao:link-accounts 2.4.0
  • oauth@1.1.2 ← xinranxiao:spotify 1.0.2 ← xinranxiao:accounts-spotify 1.0.2

Conflict: Constraint http@1.0.8 is not satisfied by http 2.0.0.
Constraints on package β€œhttp”:

  • http@2.0.0 ← accounts-twitter 1.5.0
  • http@1.4.4 || 2.0.0 ← oauth1 1.4.1 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • http@1.4.4 || 2.0.0 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • http@1.0.8 ← xinranxiao:spotify 1.0.2 ← xinranxiao:accounts-spotify 1.0.2

any leads? I would love any help

Ok, the easiest would be for you to get those packages from github (if they’re available) as local packages in your project and modify dependencies locally.
This happens to you because your Meteor version is probably above ?! 2.2 (or maybe 2.3) after some breaking changes. You can check the history of recent Meteor updates for these breaking changes.

In those conflicting packages, in package.js you can do something like this:

Package.onUse(function(api) {
  api.versionsFrom(["1.3", "2.3"]);  // where 1.3 is the old version of Meteor.
})

You then need to test that you can actually use them and the logic inside the package and the 3rd party APIs are still valid. Then you can just attempt to bring everything up to date in terms of JS syntax and 3rd party API versions.

first of all, thank you so much for taking the time to try and help me, I really appreciate it.
I tried doing what you suggested and it did eliminate the error from β€œaccounts-base” but I’m still getting errors:
rror: Conflict: Constraint oauth@1.1.2 is not satisfied by oauth 2.0.0.
Constraints on package β€œoauth”:

  • oauth@2.0.0 ← top level
  • oauth@~2.0.0 ← top level
  • oauth@2.0.0 ← accounts-oauth 1.3.0 ← accounts-facebook 1.3.3
  • oauth@2.0.0 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • oauth@2.0.0 ← oauth1 1.4.1 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • oauth@2.0.0 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • oauth@2.0.0 ← oauth2 1.3.1 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • oauth@1.3.2 || 2.0.0 ← bozhao:link-accounts 2.4.0
  • oauth@1.1.2 ← xinranxiao:spotify 1.0.2 ← xinranxiao:accounts-spotify 1.0.2

Conflict: Constraint http@1.0.8 is not satisfied by http 2.0.0.
Constraints on package β€œhttp”:

  • http@2.0.0 ← accounts-twitter 1.5.0
  • http@1.4.4 || 2.0.0 ← oauth1 1.4.1 ← twitter-oauth 1.3.0 ← accounts-twitter 1.5.0
  • http@1.4.4 || 2.0.0 ← facebook-oauth 1.9.1 ← accounts-facebook 1.3.3
  • http@1.0.8 ← xinranxiao:spotify 1.0.2 ← xinranxiao:accounts-spotify 1.0.2

Check if you are actually having the http@2.0.0 in your Meteor project. This is the last version.
It looks like Spotify is asking for a very old version. I guess you will have to update that in your local Spotify package (as described in my previous message).
Same problem here:

oauth@1.1.2 ← xinranxiao:spotify 1.0.2 ← xinranxiao:accounts-spotify 1.0.2
1 Like

is it just a matter of changing the value on the .versions file?

You should not touch that. Just meteor update --all-packages should get http to the latest version.
One file you can touch is .meteor/packages

1 Like

Ok, it looks like the package I was trying to install depends on another package and THAT package was old too, so I installed that other package locally and made the change you suggested with the api.use and I got them both to install!!!
now to see if they actually work :slight_smile:
thank you so much for you help my friend.

1 Like

I managed to get everything working thanks to your help my friend, thank you very much for your patience.

3 Likes