AhsanAyaz / ngx-device-detector

An Angular v7+ library to detect the device, OS, and browser details.
https://ahsanayaz.github.io/ngx-device-detector
MIT License
520 stars 101 forks source link

anyone else seeing this? export 'ɵɵdefineInjectable' was not found in '@angular/core #174

Closed Nathan187 closed 4 years ago

Nathan187 commented 4 years ago

experimenting with this tool. simple hello world app is not running. having the following error:

./node_modules/ngx-device-detector/fesm2015/ngx-device-detector.js 750:30-48 "export 'ɵɵdefineInjectable' was not found in '@angular/core' warnings @ client:154

sorry if this was asked already

Nathan187 commented 4 years ago

i manually removed 3 instances of ɵɵ in the file: ./node_modules/ngx-device-detector/fesm2015/ngx-device-detector.js

saw the idea here: https://github.com/FortAwesome/angular-fontawesome/issues/147#issuecomment-533394744

softmonkeyjapan commented 2 years ago

I had the exact issue (I'm using Angular@7.2.0 and ngx-device-detector@1.3.3). To be more precise, you have to replace both ɵɵdefineInjectable and ɵɵinject by respectively defineInjectable and inject in the file @Nathan187 mentionned