node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context. code example

Example 1: ng idle issue ERROR in node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.

ng update --next @angular/cli --force

Example 2: ng idle issue ERROR in node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.

npm install typescript@latest