czeckd / angular-dual-listbox

Angular 14 component for a dual listbox control.
https://czeckd.github.io/angular-dual-listbox/
MIT License
82 stars 73 forks source link

Build error "ERROR in node_modules/angular-dual-listbox/lib/basic-list.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context." #127

Open JahazielSam opened 3 years ago

JahazielSam commented 3 years ago

Getting the below error while run & build.

ERROR in node_modules/angular-dual-listbox/lib/basic-list.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.

While i have the below code in the file which meets this error.

export declare class BasicList { /** Name of the list */ private _name; /** Last element touched */ last: any; /** text filter */ picker: string; dragStart: boolean; dragOver: boolean; pick: Array<any>; list: Array<any>; sift: Array<any>; constructor(name: string); get name(): string; }

czeckd commented 3 years ago

Try setting "skipLibCheck": true in tsconfig.json.

"compilerOptions": {
    "skipLibCheck": true
}
JahazielSam commented 3 years ago

Thanks a lot @czeckd . That worked !!