填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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.