I have a TypeScript library that was created using Angular 5 compiler. Inside this library, I have defined some classes and interfaces within a namespace.
export namespace A{
export class C1 {
}
export interface I1{
}
}
After compiling the code with the Angular 5 ngc compiler, it generates a filename.metadata.json file which contains a value of [null].
However, when I try to use this library in my Angular 5 application, it throws an error due to the null .metadata.json file.
TypeError: Cannot read property 'version' of null
It's worth noting that this setup worked perfectly fine with Angular 4.3.3. Additionally, when I compile the code using the TypeScript compiler tsc, it does not generate the .metadata.json file at all, resulting in no errors.