meteor-useraccounts / bootstrap

Meteor sign up and sign in templates styled for Twitter Bootstrap
http://useraccounts.meteor.com/
MIT License
84 stars 70 forks source link

Meteor 0.9.X migration #6

Closed SkeLLLa closed 10 years ago

SkeLLLa commented 10 years ago

Hello.

I've tried to migrate my app to newer meteor version via mrt migrate-app command, but it failed with message:

The version 0.0.28 of package accounts-templates-bootstrap has not yet been migrated

Does this package support meteor >=0.9.X? I've read issues in accounts-templates-core and it seems support new meteor version, so what about this package?

PS: I've tried to add it via meteor add splendido:accounts-templates-bootstrap, but it couldn't find such package.

splendido commented 10 years ago

Hi @SkeLLLa, with my little experience, I'd say with mrt migrate-app it's hard to get things properly migrated...

My suggestion is to take note of the list of packages your currently using, then mrt remove <package> for each one, rm -rf packages (if you know what you are doing...), rm smart*.

After this run meteor update and then search the new names for all the packages you need with meteor search, and add them with meteor add <package>.

meteor add splendido:accounts-templates-bootstrap should be enough to get accounts templates up and running...

Let me know how it goes!

SkeLLLa commented 10 years ago

Thanks, @splendido. For the first time mrt remove not helped, but then I've get clear copy of my project from git (before running mrt migrate-app), and then repeat mrt remove accounts-templates-bootstrap and it installed successfully.

So correct way is:

  1. mrt remove accounts-templates-bootstrap
  2. mrt migrate-app
  3. meteor update
  4. meteor add splendido:accounts-templates-bootstrap
splendido commented 10 years ago

Wonderful!

SkeLLLa commented 10 years ago

Something strange happening when I add package to meteor:

meteor add splendido:accounts-templates-bootstrap
  added splendido:accounts-templates-bootstrap at version 0.0.10

It downloads 0.0.10 version for some reason. I've tried to:

meteor add splendido:accounts-templates-bootstrap@0.0.28
Refreshing package metadata. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Could not satisfy all the specified constraints:
Error: conflict: blaze@2.0.0 vs 1.0.3

UPDATE: I've cleared packages again and reinstalled them manually (without mrt migrate-app). And now when I try to install meteor add splendido:accounts-templates-bootstrap@0.0.28 I get:

Could not satisfy all the specified constraints:
Error: conflict: softwarerero:accounts-t9n can't be satisfied

If I add softwarerero:accounts-t9n via meteor add, it installs 0.0.14 version, and accounts-templates-bootstrap needs 0.0.17:

Could not satisfy all the specified constraints:
Error: conflict: softwarerero:accounts-t9n@0.0.17 vs 0.0.14

May be it's something with new package system, because I can find that t9n package on github, but I can't find it on atmosphere.

user@localhost:~/dev$ meteor show softwarerero:accounts-t9n
Version 0.0.17 : Translations for the meteor account's error messages.
Version 0.0.18 : Translations for the meteor account's error messages.

Maintained by softwarerero at https://github.com/softwarerero/meteor-accounts-t9n.git.
user@localhost:~/dev$ meteor add softwarerero:accounts-t9n@0.0.18
softwarerero:accounts-t9n@0.0.18: no such version 
splendido commented 10 years ago
$ meteor create test_bootstrap
test_bootstrap: created.

To run your new app:
   cd test_bootstrap
   meteor
$ cd test_bootstrap/
$ meteor add splendido:accounts-templates-bootstrap
Refreshing package metadata. This may take a moment.
  downloading splendido:accounts-templates-bootstrap at version 0.0.28 ...  done
  added softwarerero:accounts-t9n at version 0.0.17
  added splendido:accounts-templates-bootstrap at version 0.0.28
  added coffeescript at version 1.0.2
  added accounts-base at version 1.0.1
  added less at version 1.0.7
  added accounts-password at version 1.0.1
  added iron:dynamic-template at version 0.4.1
  added iron:router at version 0.9.3
  added splendido:accounts-templates-core at version 0.0.28
  added iron:layout at version 0.4.1
  added service-configuration at version 1.0.1
  added email at version 1.0.2
  added sha at version 1.0.0
  added mongo-livedata at version 1.0.4
  added localstorage at version 1.0.0
  added iron:core at version 0.3.4
  added srp at version 1.0.0
  added npm-bcrypt at version 0.7.7

splendido:accounts-templates-bootstrap: Accounts Templates styled for Twitter Bootstrap.

I'm still convinced that the best way is to start from scratch... ;-)

SkeLLLa commented 10 years ago

@splendido I've finally find out what cause that problem. There was packages folder. I've created app from scratch as you advised and copied all source to new folder except packages, .meteor folders and project started normally. May be there was some meteor cache issue.

Thanks for help.

splendido commented 10 years ago

Glad you worked it out! ...bot I'm NOT going to say "I told you to start from scratch..." ;-)

Don't hesitate to write again for anything that might come to your mind about AccountsTemplates! Have a nice day.