rbac icon indicating copy to clipboard operation
rbac copied to clipboard

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

Open reboy opened this issue 7 years ago • 2 comments

it's undefined

reboy avatar Dec 08 '18 16:12 reboy

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

KIvanow avatar Dec 18 '18 18:12 KIvanow

@reboy @KIvanow even shorter:

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

lanceschi avatar Feb 25 '19 11:02 lanceschi