在重新启动ng服务器后,我对模板进行了一些更改。我开始发现控制台出错了。我返回工作代码,但它仍然抛出相同的错误。我发现很难调试这个错误,因为它没有指向一个模板文件。我用的是角质的黏液。控制台中显示了两个错误:
Error1:
错误TypeError:无法读取splitDepsDsl (core.es5.js:8712) at _def (core.es5.js:10695) at directiveDef (core.es5.js:10652) at View_AppComponent_Host_0 (AppComponent_Host.html:1) at proxyClass (编译器.
我正在学习角2,没有先前的角度经验。我正在学习本教程:。
在添加了新的组件"app-people-list“并在index.html中更新了相同的组件之后,我得到了下面的例外。哪里出了问题?
Unhandled Promise rejection: The selector "app-root" did not match any elements ; Zone: <root> ; Task: Promise.then ; Value: Error: The selector "app-root" did not match any
我在stackblitz 上的应用程序在他们的web环境中运行良好,但是当我下载这个项目并尝试在我的机器上运行它时,它会被“加载”卡住。
我已经安装了所有需要的npm模块,甚至是对等模块,只是找不到解决方案。
编辑(铬控制台输出):
ERROR Error: The selector "app-root" did not match any elements
at DefaultDomRenderer2.push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRe
您好,我使用Angular 6和ng-boostrap,我添加了一个模式调用FocusComponent,我需要将它添加到entryComponents中,所以我将ConfirmAutoFocusComponent添加到app.module.ts中,如下所示:
bootstrap: [AppComponent, ConfirmAutoFocusComponent]
它可以工作,但在F12控制台上弹出一个错误
ERROR Error: The selector "app-confirm-auto-focus" did not match any elements
at Defau