angular - 错误 : Unexpected value 'undefined' exported by the module 'DynamicFormModule'

标签 angular module

Angular2 能够动态生成表单(模型驱动表单),而不是手动构建表单(模板驱动)。

我有一个动态表单的变体,其中整个表单生成功能作为一个模块公开(Angular RC5)。

但它因以下错误而中断(出现在开发控制台中)

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

这是笨蛋

Dynamic Form as a Module Plunkr

最佳答案

有类似的错误。发现它是由我的一个 index.ts 文件中的重复导出引起的:

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

关于angular - 错误 : Unexpected value 'undefined' exported by the module 'DynamicFormModule' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39173159/

相关文章:

angular - 找不到模块'node-sass

javascript - 遍历 http 响应 Angular2

javascript - Angular - router.navigate() 不重定向到目标页面

http - 请求 http.GET 时发送的 Angular2 OPTIONS 方法

android - Titanium:在 commonjs 模块中需要一个模块

function - VBA:从函数返回工作表对象引用

javascript - Angular 2 - 当按钮放置在可选 anchor 内时无法运行正确的功能

python - 如何从模块中导入多个项目并在 Python 中重命名它们?

c - 为每个请求制作一个自定义的 apache 模块 Hook ?

module - 向 SugarCRM 添加自定义字段类型?