coreui / coreui-free-angular-admin-template

CoreUI Angular is free Angular 18 admin template based on Bootstrap 5

Home Page:http://coreui.io/angular/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS1086: An accessor cannot be declared in an ambient context.

xidedix opened this issue · comments

@coreui/angular v2.9.0 uses Angular 9 and TypeScript 3.7

TS1086: An accessor cannot be declared in an ambient context

  • TypeScript 3.7 emits get/set accessors in .d.ts files. It can cause breaking changes for consumers on older versions of TypeScript like 3.5 and prior.
  • See: Class Field Mitigations

If you are affected:

  1. update to Angular 9 https://update.angular.io/ and TypeScript to 3.6 or 3.7
  2. or lock @coreui/angular dependency on version 2.5.5 or 2.6.3

to fix the issue, update @coreui/angular to 2.9.1

@coreui/angular v2.9.1 uses Angular 9 and TypeScript 3.6 - Angular 8 compatible

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions