I have been following the documentation here and use ng-cli.
I created the following configuration file (app-config.ts):
As per comment on issue https://github.com/angular/angular-cli/issues/2034
having the same issue. (Works fine despite warning) are you exporting more than one interface/class/const from the file? issue stopped for me after i exported each interface from its own dedicated file.
meaning if i had one file with multiple exports - i got warnings in build (export 'MyInterface1' was not found in '../file')
file.ts
export interface MyInterface1 {}
export interface MyInterface2 {}
after refactor - no warning
file1.ts
export interface MyInterface1 {}
file2.ts
export interface MyInterface2 {}