Hi All,
I have an Nx project and I keep getting the titular error reoccurring when I run a build on a library. When it happens I've been deleting the lib and then recreating it from scratch, copying every file across manually but that's getting tedious.
I'd like to understand exactly what this error means in the context of the TypeScript transpiler and what's happening under the hood, so I can effectively debug in the future and isolate the cause (as well as just better understand the inner workings of TypeScript in general).
From the stack trace I can see that the error is occurring in a function with the signature: 'getReferencedFileLocation(program, ref)' in typescript.js and further investigation shows that the referenced files array on the files object is empty when dereference occurs, which is causing the error.