Currently undergoing the process of transitioning our code to Angular CLI for our hybrid app. The plan is to migrate the Angular part to CLI while the AngularJS portion continues to be handled by custom Webpack. It's worth noting that both parts (Angular and AngularJS) can be successfully built using custom webpack without encountering any errors.
However, in the migration to Angular CLI, an issue arises in the form of:
error TS2300: Duplicate identifier 'xxxxx'
This error stems from one of our type definition files (.d.ts), which is generated from a separate application and obtained through npm on our internal servers. The file contains duplicate declarations of identifiers, and we reference types from it using import statements like:
import {IABC, IEFG} from 'type-definition-file';
It appears that even when 'node_modules' is specified as excluded in tsconfig, the .d.ts file still gets transpiled. As I cannot alter the original .d.ts file, is there a solution to resolve this error? And why did this not present an issue with custom webpack?