angular-dual-listbox icon indicating copy to clipboard operation
angular-dual-listbox copied to clipboard

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."

Open JahazielSam opened this issue 4 years ago • 2 comments

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; }

JahazielSam avatar Jan 06 '21 05:01 JahazielSam

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

"compilerOptions": {
    "skipLibCheck": true
}

czeckd avatar Jan 06 '21 05:01 czeckd

Thanks a lot @czeckd . That worked !!

JahazielSam avatar Jan 06 '21 05:01 JahazielSam