ngx-web-worker icon indicating copy to clipboard operation
ngx-web-worker copied to clipboard

could not find declaration for ngx-web-worker after upgrading from angular 7 to angular 8

Open JayasimhaJay1994 opened this issue 6 years ago • 1 comments

image Hi, i have an issue in with ngx-web-worker after upgrading from angular 7 to 8. in 7 it was working fine then after upgrade it shows: node_modules/ngx-web-worker/dist/web-worker.service.js' implicitly has an 'any' type. Try npm install @types/ngx-web-worker if it exists or add a new declaration (.d.ts) file containing `declare module 'ngx-web-worker';|

any suggestions?

JayasimhaJay1994 avatar Sep 20 '19 04:09 JayasimhaJay1994

Had the same problem. Works when I put:

constructor ( 
   ...,
   @Inject(WebWorkerService) private webWorkerService: WebWorkerService) {
      ...
}

jayhaluska avatar Nov 22 '19 10:11 jayhaluska