I've a sample Angular app built with version 12. When this app try to use a library built with Angular 10 and compile the code I get below compilation error. Any help on this is appreciated. This is part of a POC on an app using libraries built with older versions as our application is expected to be in this state eventually.
Error: node_modules/practice10/lib/practice10lib.module.d.ts:5:21 - error TS2694: Namespace '"C:/src/spaexample/axcess-spa-mainapp/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'.
5 static ɵmod: i0.ɵɵNgModuleDefWithMeta<Practice10libModule, [typeof i1.Practice10libComponent], [typeof i2.AgGridModule], [typeof i1.Practice10libComponent]>; ~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/practice10/lib/practice10lib.service.d.ts:4:21 - error TS2694: Namespace '"C:/src/spaexample/axcess-spa-mainapp/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'.
4 static ɵfac: i0.ɵɵFactoryDef<Practice10libService, never>; ~~~~~~~~~~~~
mError: node_modules/practice10/lib/practice10lib.service.d.ts:5:22 - error TS2724: '"C:/src/spaexample/axcess-spa-mainapp/node_modules/@angular/core/core"' has no exported member named 'ɵɵInjectableDef'. Did you mean 'ɵgetInjectableDef'?
5 static ɵprov: i0.ɵɵInjectableDef;