bearnithi / bn-ng-idle

Angular user idle detector service
28 stars 11 forks source link

Issue with compiler using fesm2015 module #45

Open hjoseph96 opened 2 years ago

hjoseph96 commented 2 years ago

Error: node_modules/bn-ng-idle/lib/bn-ng-idle.module.d.ts:3:21 - error TS2694: Namespace '"/home/godkingherb/Desktop/sram-app/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

3     static ɵfac: i0.ɵɵFactoryDeclaration<BnNgIdleModule, never>;
                      ~~~~~~~~~~~~~~~~~~~~

Error: node_modules/bn-ng-idle/lib/bn-ng-idle.module.d.ts:4:21 - error TS2694: Namespace '"/home/godkingherb/Desktop/sram-app/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

4     static ɵmod: i0.ɵɵNgModuleDeclaration<BnNgIdleModule, never, never, never>;
                      ~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/bn-ng-idle/lib/bn-ng-idle.module.d.ts:5:21 - error TS2694: Namespace '"/home/godkingherb/Desktop/sram-app/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

5     static ɵinj: i0.ɵɵInjectorDeclaration<BnNgIdleModule>;
                      ~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/bn-ng-idle/lib/bn-ng-idle.service.d.ts:14:21 - error TS2694: Namespace '"/home/godkingherb/Desktop/sram-app/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

14     static ɵfac: i0.ɵɵFactoryDeclaration<BnNgIdleService, never>;
                       ~~~~~~~~~~~~~~~~~~~~

Error: node_modules/bn-ng-idle/lib/bn-ng-idle.service.d.ts:15:22 - error TS2694: Namespace '"/home/godkingherb/Desktop/sram-app/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.

15     static ɵprov: i0.ɵɵInjectableDeclaration<BnNgIdleService>;
                        ~~~~~~~~~~~~~~~~~~~~~~~

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 35:18-28
Can't import the named export 'Injectable' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 47:18-26
Can't import the named export 'NgModule' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 7:28-35
Can't import the named export 'Subject' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:27-36
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:61-70
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:91-100
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:125-134
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:158-167
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:197-206
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:232-241
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:266-275
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:304-313
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:336-345
Can't import the named export 'fromEvent' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 10:21-26
Can't import the named export 'merge' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 19:22-27
Can't import the named export 'timer' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 32:143-161
Can't import the named export 'ɵɵFactoryTarget' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 43:141-159
Can't import the named export 'ɵɵFactoryTarget' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 34:0-27
Can't import the named export 'ɵɵngDeclareClassMetadata' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 46:0-27
Can't import the named export 'ɵɵngDeclareClassMetadata' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 32:23-44
Can't import the named export 'ɵɵngDeclareFactory' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 43:22-43
Can't import the named export 'ɵɵngDeclareFactory' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 33:24-48
Can't import the named export 'ɵɵngDeclareInjectable' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 45:22-44
Can't import the named export 'ɵɵngDeclareInjector' from non EcmaScript module (only default export is available)

Error: ./node_modules/bn-ng-idle/fesm2015/bn-ng-idle.mjs 44:22-44
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)

There seems to be an issue with the importing of packages inside of the Service here, any idea what could be the cause?

On Angular 11 atm.

SaulDev09 commented 1 year ago

x2