Error: Unexpected value 'undefined' exported by the module 'DynamicFormModule'

Fixed it. There was a typo for DynamicFormComponent. It was spelled as DynamicForm. Corrected it in dynamic-form.module.ts


Had a similar error. It was caused by an import in the NgModule of my library. Instead of importing it directly, it was imported from the public_api.ts file (entry file).

Fixed it by changing

import { MyDirective } from 'public_api';

to

import { MyDirective } from './my-directive/my-directive.directive';


Had a similar error. Discovered it was caused by a repeated export in one of my index.ts file:

export * from './article/article.component';
export * from './body/body.component'; //first export
export * from './cards/cards.component';
export * from './body/body.component'; //repeated export

Tags:

Module

Angular