You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
Can only replicate in 4.5.3 (4.5.2 seems to be fine). Using a standard import { AccessControl } from 'role-acl'; results in the following errors at build time.
node_modules/role-acl/lib/src/AccessControl.d.ts:320:16 - error TS1086: An accessor cannot be declared in an ambient context.
320 static get Error(): any;
~~~~~
node_modules/role-acl/lib/src/core/Permission.d.ts:62:9 - error TS1086: An accessor cannot be declared in an ambient context.
62 get roles(): string[];
~~~~~
node_modules/role-acl/lib/src/core/Permission.d.ts:70:9 - error TS1086: An accessor cannot be declared in an ambient context.
70 get resource(): string;
~~~~~~~~
node_modules/role-acl/lib/src/core/Permission.d.ts:83:9 - error TS1086: An accessor cannot be declared in an ambient context.
83 get attributes(): string[];
~~~~~~~~~~
node_modules/role-acl/lib/src/core/Permission.d.ts:92:9 - error TS1086: An accessor cannot be declared in an ambient context.
92 get granted(): boolean;
The text was updated successfully, but these errors were encountered:
which version of typescript and Node are you using? I am not getting these errors.
I am using the following:
Node: v12.16.1,
tsc: Version 3.8.3
Are you trying from the browser by any chance?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Can only replicate in 4.5.3 (4.5.2 seems to be fine). Using a standard
import { AccessControl } from 'role-acl';
results in the following errors at build time.The text was updated successfully, but these errors were encountered: