Angular compiler报的一个错误消息:Component XX is not part of any NgModule
Error in /turbo_modules/@angular/compiler@9.1.12/bundles/compiler.umd.js (29363:23)
Component ProductListComponent is not part of any NgModule or the module has not been imported into your module.
错误分析
app.module.ts里,只import了ProductListComponent,但却未申明到declarations区域内:
添加之后错误消失:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
Angular compiler报的一个错误消息:Component XX is not part of any NgModule相关推荐
- Angular 服务器端渲染的一个错误消息 - No provider for InjectionToken REQUEST
错误消息: NullInjectorError: R3InjectorError(AppServerModule) WindowRef -> InjectionToken SERVER_REQU ...
- Angular开发遇到的一个错误消息 - Expected linebreak to be LF(和本地文件的换行设置有关)
(linebreak-style)tslint(1) 命令: ng test core --code-coverage console会不定期打印出单元测试执行结果: 最后2554个全部执行完毕. 在 ...
- maven安装jar包到本地仓库报的一个错误:Could not find goal '' in plugin org.apache.maven.plugins
今天在将jar包加入本地仓库的时候,由于拼写没有注意,报了一个错误: Could not find goal '' in plugin org.apache.maven.plugins.下面贴出 ...
- Angular单元测试的一个错误消息
错误消息: 'expect' was used when there was no current spec, this could be because an asynchronous test t ...
- Angular No provider for EffectsRootModule错误消息的出现原因和修复方式
错误消息: main.ts:12 NullInjectorError: R3InjectorError(AppModule)[EffectsFeatureModule -> EffectsRoo ...
- 使用Java消费API的一个错误消息PKIX path building failed以及解决方案
我使用Java代码消费一个网站的Restful API,遇到如下错误: PKIX path building failed: sun.security.provider.certpath.SunCer ...
- 手动制造报错_错误消息 : 检测到计算机制造商显卡驱动程序
更新显卡驱动程序时,如果出现以下错误消息之一,请参阅此内容. 使用英特尔® 驱动程序和支持助理时遇到的错误 错误:您的计算机上安装了计算机制造商定制的一个驱动程序.英特尔® 驱动程序和支持助理无法更新 ...
- Angular依赖注入机制的一个错误消息:Error Cannot instantiate cyclic dependency!
例子: import { Injectable } from '@angular/core';@Injectable({providedIn: 'root',}) export abstract cl ...
- SAP OData 服务在 gateway 层出错,应该如何处理?通过一个错误消息 Query XXX is invalid or contains errors 来举例说明
在浏览器里访问如下url遇到错误: https://jerry.sap.corp:44300/sap/opu/odata/sap/C_SALESCONTRACTITMFLFMTQ_CDS/$metad ...
最新文章
- react native报错:Expected a component class,got[object object]
- 支持delete吗_Spark Delta Lake 0.4.0 发布,支持 Python API 和部分 SQL
- unity 坐标系转换_Unity的几种坐标系及相互转换
- 将Quartz与Spring集成
- Android 手把手带你玩转自己定义相机
- Apsara Stack 技术百科 | 边缘场景智能云化,让云无处不在
- fopen php 读取_PHP fopen读取url内容
- Windows 10 安装(硬盘装机)
- 用excel制作项目管理甘特图
- MATLAB之特征值和特征向量
- 1000句最常用英语口语 (四)
- YII2框架AJAX请求报500错误的处理方法
- 形容计算机很烂的网络用语,坑爹什么意思 网络术语坑爹是什么意思?
- 【有奖调研】| 参与区块链调研,赢千元大奖!
- python读取csv表格的数据并用matplotlib画曲线图
- VSCode中snippets(代码模板)的使用
- 线性布局管理器LinearLayout
- “实践与理论相结合”是开发人员的学习之道
- 逃脱只会部署集群系列 —— Kubeadm部署v1.18.0与ETCD操作
- cnn卷积神经网络手写体识别keras和tensorflow