I was trying to use @alanning/roles package due to the example in readme. So I have got an error TypeError: _context.t0 is not a constructor, which mean Roles class is undefined, so it's not working with the default import.
The problem was fixed, after I import directly Roles from @alanning/roles package:
import { Roles } from '@alanning/roles';
The purpose of the change is to avoid confusions between examples and real usage.
I was trying to use
@alanning/roles
package due to the example in readme. So I have got an errorTypeError: _context.t0 is not a constructor
, which meanRoles
class isundefined
, so it's not working with the default import. The problem was fixed, after I import directlyRoles
from@alanning/roles
package:The purpose of the change is to avoid confusions between examples and real usage.