填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

NG6999: Invalid @NgModule() metadata
无效的 @NgModule() 元数据

说明

Description

此错误表示 @NgModule() 的某个导入或导出中没有有效的元数据。

This error represents the import or export of an @NgModule() that doesn't have valid metadata.


如何排除本错误

Debugging the error

可能已使用 ngcc 处理过该库。如果是这种情况,请尝试删除并重新安装 node_modules 。此错误也可能是由于面向 Angular Ivy 发布库而导致的,该库无法在此 View Engine 应用程序中使用。如果不是这种情况,则可能是基于 View Engine 的库已在安装后步骤中被 ngcc 转换为 Ivy。

The library might have been processed with ngcc. If this is the case, try removing and reinstalling node_modules. This error is likely due to the library being published for Angular Ivy, which cannot be used in this View Engine application. If that is not the case then it might be a View Engine based library that was converted to Ivy by ngcc during a postinstall step.

检查对等方的依赖关系,以确保你使用的是 Angular 的兼容版本。

Check the peer dependencies to ensure that you're using a compatible version of Angular.