Open zangab opened 2 months 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
Same problem for me. I'm trying to solve this last problem before migrating to Meteor v3.
@demangejeremy The fix is actually quite easy with await Roles.createRoleAsync(...)
but it's irritating if the docs state otherwise. That's why I try to reach out to some maintainers :)
Thanks a lot @zangab, that's what I realized right after I sent my message. Indeed, it's confusing.
Describe the bug
I am not sure if this is a faulty behavior or intended. I installed the package along with
accounts-password
and meteorvue
. I followed the docs but as soon as I calledRoles.createRole(...)
the server threw aTypeError
sayingRoles.createRole is not a function
.So I dumped the
Roles
variable and saw that there was only acreateRoleAsync
function present but nocreateRole
. My startup script is async, meaning:The question is now: are the docs wrong? Is this intended? I saw that in the
common.js
file there is acreateRole
function present.To Reproduce
Install
put this function into the
server/main.js
Expected behavior
Does not throw any error or docs update (place an info somewhere that this can happen).
Screenshots