[Bug] ERROR: Unexpected value 'undefined' imported by the module
You may or may not encounter this error during your library build or xi18n build.
Error will look like:
ERROR in Unexpected value 'undefined' exported by the module 'DynamicModule in ...
or
ERROR: Unexpected value 'undefined' imported by the module 'DynamicComponentModule in ...
Regardles of the module - the reason is the bug upstream all the way in Angular compiler.
Until that bug is fixed and release in all toolchain stream (@angular/compiler -> @angular/cli -> ng-packagr) you should use special NPM tag - @no-barrels.
After the fix published and you have switched all your tolling to fixed versions - you can simply jump back on @latest NPM tag.
In the mean time all new minor features and patches will be back-ported to @no-barrels NPM tag.
Thanks to @berrygoudswaard for reporting the issue with PR that is now on fixed NPM tag.
Also you can check the xi18n issue that was confirmed to be resolved by fixed NPM tag.
I'm getting this error currently
ERROR in Unexpected value 'undefined' imported by the module 'DynamicModule in C:/Users/***/Documents/***/
*****/node_modules/ng-dynamic-component/ng-dynamic-component.d.ts'
Please read the issue description before posting a comment as there is a workaround.
Since the issue upstream was resolved I'm closing this one.
No more @no-barrels releases are planned and should not be necessary anymore.