ailon / markerjs

[Deprecated - use markerjs2]: Let your users annotate and mark images
https://markerjs.com
MIT License
103 stars 32 forks source link

Typing error in Activator.d.ts #29

Open akyrey opened 4 years ago

akyrey commented 4 years ago

Hello! First of all, thank you for the great library!

After installing it in an Angular 8 application I have this error during build:

ERROR in node_modules/markerjs/typings/Activator.d.ts:3:16 - error TS1086: An accessor cannot be declared in an ambient context.
static get isLicensed(): boolean;

I've installed version 1.8.1 and I'm using TypeScript 3.5.3

ailon commented 4 years ago

Thank you for reporting this. I will investigate. Since the d.ts files are auto-generate it could take a bit. In the meantime, the workaround is to disable type-checking on libraries:

"compilerOptions": {
    "skipLibCheck": true
}

https://stackoverflow.com/a/61155732

akyrey commented 4 years ago

Thank you!