I reduced the problem to this example:
test.model.ts
export class A { a: number; } export interface B { b: number; }
test.component.ts
import { Component, Input } from '@angular/core'; import { A, B } from './test.model'; @Component({ selector: 'test', template: '<h1>test</h1>' }) export class TestComponent {
When I want to use the interface , I get the following warning:
WARNING in ./src/app/.../test.component.ts 21:76 export 'B' was not found in './test.model'
However, using the class is fine. Any hint?
UPDATE . Something seems to be related to this issue: https://github.com/webpack/webpack/issues/2977
source share