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

bug: when use: ES5 var RBAC = require('rbac').default; #45

Open
reboy opened this issue Dec 8, 2018 · 2 comments
Open

bug: when use: ES5 var RBAC = require('rbac').default; #45

reboy opened this issue Dec 8, 2018 · 2 comments

Comments

@reboy
Copy link

reboy commented Dec 8, 2018

it's undefined

@KIvanow
Copy link

KIvanow commented Dec 18, 2018

@reboy Just clashed with the same. Took a look at the export and what worked was:
const RBAC = require("rbac").RBAC;

@lanceschi
Copy link

@reboy @KIvanow even shorter:

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

3 participants