What does "module {path} \ src \ app \ sales \ models \ index.ts have no static export" mean and how to fix it?

We just added webpack 3.0.0 to our angular 2 project. I worked, achieved a performance improvement of 20-25% and reduced the size by 50% (ish). Then I replaced this with the main branch and started getting an error.

ERROR in chunk main [initial]
[name].bundle.js
Module \src\app\sales\models\index.ts has no static exports true

What does this error mean? I did not find anything useful on the Internet. Any tips for fixing it?

The file has \src\app\sales\models\index.tsnot changed since my commit and contains only:

export * from './app-state';
export * from './purchase.model';
export * from './base.model';
export * from './view-state.model';
export * from './address';
export * from './core';
export * from './cover';
export * from './disclaimers';
export * from './family';
export * from './premium';
export * from './payments';
export * from './policy';
export * from './tracking.model';

, , , , "" - ( git bisect), , .

webpack, ConcatenatedModule.js HarmonyImportSpecifierDependencyConcatenatedTemplate

    if(!Array.isArray(module.providedExports))
        throw new Error(`Module ${module.resource} has no static exports ${module.providedExports}`);

, module.providedExports true, , ; , , .

? ?

+4
1

. , , "*" .

:

:

export * from './foo';
export * from './bar';

:

export {Foo1, Foo2, /*...*/} from './foo';
export {Bar1, Bar2, /*...*/} from './bar'
0

Source: https://habr.com/ru/post/1681438/


All Articles