I'm compiling a library with Angular 9/ng-packagr and it works. But if I change in angularCompilerOptions and disable Ivy "enableIvy": false then I get the following error:
ERROR: Unexpected value 'OtherLibModule in .../node_modules/other-lib-module/other-lib-module.d.ts' imported by the module 'MyModule in my-project/projects/my-lib/src/app/my.module.ts'. Please add a @NgModule annotation.
OtherLibModule is another library that I created, built with Angular 9 and "enableIvy": false.