我有一个父模块(app.module)&一个子模块(contacts.module)。子模块是延迟加载的。父模块利用来自子模块的组件,但当我导航到子路由时,会得到以下错误:
'app-contacts-home' is not a known element:
1. If 'app-contacts-home' is an Angular component, then verify that it is part of this module.
2. If 'app-contacts-home' is a Web Component t
我们使用Gulp (刚刚从ng-cli迁移而来)来构建我们的2项目,在这里我使用燃料ui。
我有个奇怪的错误。我在我们的一个组件中使用燃料ui的警报组件。如果我们在system.config.js中引用节点_模块/燃料-ui文件夹中的燃料-ui,那么一切都很好。如果我从构建/供应商/燃料-ui引用它,它会失败,并出现以下错误:
EXCEPTION: Unexpected directive value 'undefined' on the View of component 'MyAlertComponent'
platform-browser.umd.
在AppComponent中,我在HTML代码中使用nav组件。UI看起来很好。做服务时没有错误。当我看这个应用程序时,控制台上没有任何错误。
但是当我为我的项目运行Karma时,有一个错误:
Failed: Template parse errors:
'app-nav' is not a known element:
1. If 'app-nav' is an Angular component, then verify that it is part of this module.
2. If 'app-nav' is a Web Com