我使用以下说明将角度材料安装到我的asp.net样板角度项目中: https://material.angular.io/guide/getting-started
当我运行angular项目时,我现在在启动时在控制台窗口中出现以下错误:
错误错误:选择器" ng-component"与任何元素都不匹配 在DefaultDomRenderer2.selectRootElement(webpack-internal:///./node_modules/@angular/platform-browser/esm5/platform-browser.js:2857) at BaseAnimationRenderer.selectRootElement(webpack-internal:///./node_modules/@angular/platform-browser/esm5/animations.js:516) 在DebugRenderer2.selectRootElement(webpack-internal:///./node_modules/@angular/core/esm5/core.js:15488) at createElement(webpack-internal:///./node_modules/@angular/core/esm5/core.js:10765) 在createViewNodes(webpack-internal:///./node_modules/@angular/core/esm5/core.js:13919) at createRootView(webpack-internal:///./node_modules/@angular/core/esm5/core.js:13847) at callWithDebugContext(webpack-internal:///./node_modules/@angular/core/esm5/core.js:15272) at Object.debugCreateRootView [as createRootView](webpack-internal:///./node_modules/@angular/core/esm5/core.js:14555) 在ComponentFactory_.create(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11452) 在ComponentFactoryBoundToModule.create(webpack-internal:///./node_modules/@angular/core/esm5/core.js:4239)
和
错误错误:未捕获(在承诺中):错误:已加载BrowserModule。如果需要从延迟加载的模块访问常用指令(如NgIf和NgFor),请改为导入CommonModule。 错误:已加载BrowserModule。如果需要从延迟加载的模块访问常用指令(如NgIf和NgFor),请改为导入CommonModule。 在新的BrowserModule上(webpack-internal:///./node_modules/@angular/platform-browser/esm5/platform-browser.js:4784) at _createClass(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11107) at _createProviderInstance $ 1(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11081) 在initNgModule(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11034) 在新的NgModuleRef_(webpack-internal:///./node_modules/@angular/core/esm5/core.js:12289) at createNgModuleRef(webpack-internal:///./node_modules/@angular/core/esm5/core.js:12278) at Object.debugCreateNgModuleRef [as createNgModuleRef](webpack-internal:///./node_modules/@angular/core/esm5/core.js:14612) 在NgModuleFactory_.create(webpack-internal:///./node_modules/@angular/core/esm5/core.js:15750) 在MapSubscriber.eval [as project](webpack-internal:///./node_modules/@angular/router/esm5/router.js:4652) 在MapSubscriber._next(webpack-internal:///./node_modules/rxjs/_esm5/operators/map.js:82) 在新的BrowserModule上(webpack-internal:///./node_modules/@angular/platform-browser/esm5/platform-browser.js:4784) at _createClass(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11107) at _createProviderInstance $ 1(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11081) 在initNgModule(webpack-internal:///./node_modules/@angular/core/esm5/core.js:11034) 在新的NgModuleRef_(webpack-internal:///./node_modules/@angular/core/esm5/core.js:12289) at createNgModuleRef(webpack-internal:///./node_modules/@angular/core/esm5/core.js:12278) at Object.debugCreateNgModuleRef [as createNgModuleRef](webpack-internal:///./node_modules/@angular/core/esm5/core.js:14612) 在NgModuleFactory_.create(webpack-internal:///./node_modules/@angular/core/esm5/core.js:15750) 在MapSubscriber.eval [as project](webpack-internal:///./node_modules/@angular/router/esm5/router.js:4652) 在MapSubscriber._next(webpack-internal:///./node_modules/rxjs/_esm5/operators/map.js:82) at resolvePromise(webpack-internal:///./node_modules/zone.js/dist/zone.js:824) at resolvePromise(webpack-internal:///./node_modules/zone.js/dist/zone.js:795) 在eval(webpack-internal:///./node_modules/zone.js/dist/zone.js:873) 在ZoneDelegate.invokeTask(webpack-internal:///./node_modules/zone.js/dist/zone.js:425) at Object.onInvokeTask(webpack-internal:///./node_modules/@angular/core/esm5/core.js:4956) 在ZoneDelegate.invokeTask(webpack-internal:///./node_modules/zone.js/dist/zone.js:424) 在Zone.runTask(webpack-internal:///./node_modules/zone.js/dist/zone.js:192) 在drainMicroTaskQueue(webpack-internal:///./node_modules/zone.js/dist/zone.js:602)
我在安装中缺少什么才能让它运行。 asp.net样板角度模板是否有不同的安装说明?