-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Roles is not work with meteor 0.9.1.1 #55
Comments
@alanning Your likely going to just love this but both Handlebars and UI are depreciated. See https://github.com/meteor/meteor/blob/devel/History.md. That said I am not having this problem, not sure why its not working for you @zimme but UI should an alias to Blaze. Possibly load order? |
@zakirarrayiq, which version of meteor are you running? In app directory, run:
|
METEOR@0.9.1.1 |
@zakirarrayiq, can you check which version of 'roles' is getting pulled in please?
|
@zakirarrayiq, the error message you posted is from an older version of roles so it seems roles version v1.2.13 (for Meteor 0.9.1+) is not getting pulled in for some reason. Not sure why, maybe a glitch in the package hosting servers? These steps work for me:
@CMToups, thanks for the update. I think we're ok with the deprecation as the 0.9+ versions explicitly check for Blaze stuff first (as much as we're able... grrr). if (api.versionsFrom) {
api.versionsFrom('METEOR@0.9.1');
api.use(['blaze@2.0.0'], 'client', {weak: true});
} else if(uiExists()) {
// This is needed due to Meteor Issue #1358
// https://github.com/meteor/meteor/issues/1358
//
// In meteor < 0.9, the 'weak' flag doesn't work with packages
// that aren't in meteor's internal cache (ie. non-core packages)
api.use(['ui'], 'client', {weak: true});
} else {
api.use(['handlebars'], 'client', {weak: true});
} Source: https://github.com/alanning/meteor-roles/blob/meteor-0.9.1/roles/package.js#L13-L25 |
@alanning You are right I am pulling old code. I am behind a proxy and it gives an error first and then defaults to another package server. Here is output Refreshing package metadata. This may take a moment. |
You can manually get it to work by pulling down the You may also be able to add "ui" to your |
Thanks for your help. I will wait couple of days to see whether package servers gets updated with your latest versions. |
Hi alanning, having some issues upgrading an app to 0.9 and am stuck at the moment on adding roles. I've mrt migrate-app with out error now (after removing a bunch of pre 0.9 packages from smart.json, including roles), but then tried to do meteor add alanning:roles and I get Refreshing package metadata. This may take a moment. .meteor/releases show METEOR@0.9.2.2. meteor list shows the same error as the add command did. Any ideas? OK, found it, had to meteor remove cmather:iron-router, then added iron:core etc and then could load roles. Now to see what else I've broken in the process :) |
Looks like we'll need to release another version just for Meteor 0.9.2. I'll publish a new release today and let you know. Not sure why the 0.9.1 version is not compatible with 0.9.2 but the good news is that this won't be a problem after 0.9.3 lands as Meteor will allow support for multiple versions of packages. Sent from my phone
|
Don't know if you've already published the new version yet, or if I should just hold tight, but FWIW I'm having the same issue ( |
@zda, Thanks for the repro. Running
Running
|
Just an FYI after reading this: I have noted that |
Looks like this is still an issue. I'm getting it on Meteor v1.2.0.1. I've tried removing and adding the package but that didn't work. I've also installed the patch to fix the "Exception in template helper: ReferenceError: Match is not defined " issue. alanning:roles 1.2.13+ Authorization package for Meteor Anyone else still getting this issue? Any idea how to fix this? |
Hi @CaptainChainsaw, I just tried creating a new Meteor 1.2.0.1 app and adding roles and it seems to work. I don't see any errors in the console when testing with latest Chrome desktop. Could you try the following steps and see if your results match mine, please?
|
Hey, challett released a new patch that sorted this: https://github.com/challett/meteor-roles/tree/challett-patch-4 Cheers :) |
Cool! Thanks for the pointer. |
You're welcome :) |
I create a simple application with
meteor create test-roles
cd test-roles
meteor add alanning:roles
meteor
When I access the web page I get in the console
WARNING: Roles template helpers not registered. Handlebars or UI package not found
What do I need to initialize Meteor.ui?
The text was updated successfully, but these errors were encountered: