Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
920 stars 164 forks source link

Meteor.roleAssignment, error: Property 'roleAssignment' does not exist on type 'typeof Meteor'. #363

Closed 113475 closed 11 months ago

113475 commented 1 year ago

system say error about the role assignment. What should I do to solve this problem?

github-actions[bot] commented 1 year ago

Thank you for submitting this issue!

We, the Members of Meteor Community Packages take every issue seriously. Our goal is to provide long-term lifecycles for packages and keep up with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.

However, we contribute to these packages mostly in our free time. Therefore, we can't guarantee your issues to be solved within certain time.

If you think this issue is trivial to solve, don't hesitate to submit a pull request, too! We will accompany you in the process with reviews and hints on how to get development set up.

Please also consider sponsoring the maintainers of the package. If you don't know who is currently maintaining this package, just leave a comment and we'll let you know

copleykj commented 1 year ago

Could be helpful to provide the error here.

StorytellerCZ commented 1 year ago

@113475 can you please provide us the exact error message from console, or even better a reproduction of the issue?

StorytellerCZ commented 1 year ago

A possible issue could be that you are trying to access this before Meteor.startup, hence before everything is initialized.

113475 commented 11 months ago

Thanks for you all, the problem has been solved.