其他分享
首页 > 其他分享> > ERROR in : Cannot determine the module for class xxxx Add to the NgModule to fix it.

ERROR in : Cannot determine the module for class xxxx Add to the NgModule to fix it.

作者:互联网

原文链接:这里
0.前言

angular项目打包的时候遇到这个问题,大概意思是我的一个component组件没有加到NgModule里面去。

1.解决办法

打开你的项目文件,找到下面这两个文件,

一般报错都是在这两个文件上,本文的报错涉及到routes.moudule.ts。我们打开这个文件,首先看我们报错的组件是否正常引入,

然后,再看看NgModule模块是否也有这个组件。

正常引入后打包成功。

标签:文件,xxxx,fix,module,引入,报错,组件,NgModule,打包
来源: https://www.cnblogs.com/longkui-site/p/15858842.html