-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade from loneleeandroo/ngMeteor: Errors and what to expect? #66
Comments
@tehXor that's a good point. About migrating, it depends a lot of what version on ngMeteor are you using. In both case, I think that it is not so hard to do.. Writing a manual is a good idea, maybe we can talk soon on Google Hangouts or something and I can help you find the problems and out of that write something for everyone? |
As I've got no response I'm closing it for now and opening a card on writing a manual in the public Trello board. Would love to chat when you can |
Sorry for not replying, we delayed the project for some weeks but it will for sure not be canceled. |
I started the tutorial and got detrailed at http://angularjs.meteor.com/tutorial/step_07 with the same issue ("Uncaught TypeError: The first argument of $collection must be a Meteor.Collection object"). I just installed meteor and urigo at the start of the tutorial so I should have the latest versions. Is there somewhere I could upload a zip of my project? ( I don't see how I could get this working in a plunkr). Here's a screenshot of my file structure. model/models.js contains the collection declaration (Projects = new Mongo.Collection("projects");) and server/startup/initProjects contains the code to pre-populate the empty collection |
@phaggood you can upload the code to an open Github repo and send me the link, I would love to have a look |
It also appears I'm getting the same 'duplicate angular' warning as reported in #138; I checked my bower and there's no extra angular reference in it per the original reporter's reply. |
I'm going to give a lecture now at Google so in a few hours I will try to run your solution and see what's the problem. |
Has there been any resolution on this issue? I was hoping to continue on the tutorial this weekend. |
@phaggood Your issue is with the templateUrls at your app.js file. |
That did it; thanks! |
So meanwhile we did the upgrade from Meteor 0.8.x to 1.0.3.x and with that replaced loneleeandroo:ngmeteor with urigo:angular. It indeed was not too hard to do and took us round about one day for a fairly big app. For the rare case that someone stumbles upon this thread with a similar task ahead, I'll real quick sum up our steps we needed to perform:
And I gotta say urigo:angular makes a good impression. Thanks for keeping it up to date and healthy! |
@tehXor, you comment makes me so happy!! Thank you so so much for you help and documentation, it is so great to have you on board with us. Do you think we should add those steps in some other place or here is enough? |
@Urigo I'm glad you appreciated my comment. |
Cool, again, thank you so much |
We have a meteor 0.8.x app that is just running for the past month which uses loneleeandroo/ngMeteor.
However now it needs further developing and therefore there is no real way around an upgrade to Meteor 1.0. From what we read so far and some tests loneleeandroo/ngMeteor is not really compatible with Meteor > 0.9.x and this looks like a promising alternative project. But simply replacing packages and some adjustments don't seem sufficient. After replacing the packages in our test we replaced the initialization
ngMeteor.requires.push('OurApp');
withangular.bootstrap(document, ['OurApp']);
and added angular-meteor to our app:angular.module('OurApp', [ 'angular-meteor', '...'])
. The first error we got hit by is a "Uncaught TypeError: The first argument of $collection must be a Meteor.Collection object" in angular-meteor-collections.js:9.As not developing meteor for some month seems like ages atm, some basic questions to people who are currently up to date with Meteor and angular-meteor before we dig further:
How much adjustments/refactoring needs to be done to make a ngMeteor project compatible with angular-meteor? (Not in terms of time anything relative to the project size but in terms of how much differences are between both projects.)
Can it be worth it or are there other alternatives for old ngMeteor projects?
Is there maybe somewhere a guid/simple blog entry of people who did such an upgrade with some helpful tips for getting around common errors?
Information would be much appreciated!
The text was updated successfully, but these errors were encountered: