Skip to content
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

RBAC is not a constructor #58

Open
rustam87 opened this issue Nov 14, 2019 · 1 comment
Open

RBAC is not a constructor #58

rustam87 opened this issue Nov 14, 2019 · 1 comment

Comments

@rustam87
Copy link

v.5.0.3

var RBAC = require('rbac');

return

{ __esModule: true,
  RBAC: [Function: RBAC],
  Base: [Function: Base],
  Role: [Function: Role],
  Permission: [Function: Permission],
  Storage: [Function: Storage],
  Memory: [Function: Memory] }

in doc you wrote
var RBAC = require('rbac').default

Where is default key?
var RBAC = require('rbac').default
return undefined and bellow
RBAC is not a constructor

@KasparTr
Copy link

KasparTr commented Dec 2, 2019

+1. Solution is to use the following:

const {RBAC} = require('rbac');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants