ng-dynamic-component icon indicating copy to clipboard operation
ng-dynamic-component copied to clipboard

[Bug] ERROR: Unexpected value 'undefined' imported by the module

Open gund opened this issue 5 years ago • 2 comments

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.

gund avatar Apr 13 '20 23:04 gund

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'

rszemplinski avatar Aug 21 '20 15:08 rszemplinski

Please read the issue description before posting a comment as there is a workaround.

gund avatar Aug 22 '20 16:08 gund

Since the issue upstream was resolved I'm closing this one. No more @no-barrels releases are planned and should not be necessary anymore.

gund avatar Aug 28 '22 01:08 gund