【发布时间】:2017-08-18 04:53:33
【问题描述】:
我正在为使用 VMware 的 Clarity 组件的 angular 2 项目做 POC。当我运行测试运行器时,出现以下错误:
'clr-main-container' is not a known element:
1. If 'clr-main-container' is an Angular component, then verify that it is part of this module.
2. If 'clr-main-container' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<clr-main-container>
我是 Angular 2 的新手,在 Google 上找不到任何东西。
【问题讨论】:
-
嗨@agillette。您似乎还没有注册
ClarityModule。需要更多细节来理解完整的问题。什么是测试运行器?您在使用 Clarity 种子项目吗?我建议浏览 Clarity 入门页面:vmware.github.io/clarity/get-started#seedProjectClarity 并使用他们的种子应用程序。
标签: angular unit-testing vmware-clarity