预编译现在导致RC 5中的错误 - Angular 2

Ben*_*ins 1 angular

预编译导致RC5出错:

在此输入图像描述

错误是

类型'{selector:string; templateUrl:string; 指令:((typeof RouterOutlet | typeof RouterLink | ...'不能分配给'ComponentMetadataType'类型的参数.对象文字只能指定已知属性,'ComponentMetadataType'类型中不存在'precompile'.(property)预编译:typeof LandingPageComponent []

我在这里做的建议是什么?删除错误的行?添加相同的东西?

Joa*_*kim 6

precompile已更名为entryComponents.

您可以查看以下提交以获取更多详细信息:https: //github.com/angular/angular/commit/6f4e49e

或者这个问题 来自于Angular2的最新版本抱怨:NgModule DynamicModule通过"entryComponents"使用HomeComponent