如何使用 Material Design MatTableModule 修复 stackblitz ngcc 错误? [英] How to fix stackblitz ngcc error with Material Design MatTableModule?
问题描述
在查看了我自己的项目配置和
我读过一些关于 Ivy 是一个问题的文章,当我在我的 Stackblitz 项目的设置区域进行侦察时,我注意到了这个标记为Ivy"的复选框.虽然没查,但我查过了.刷新后我仍然收到错误.我取消选中它,然后刷新.错误消失!
After reviewing everything between my own project config, and that of this sample, I am unable to know why I get the error:
Error in turbo_modules/@angular/material@9.2.4/table/table-module.d.ts (8:22)
Appears in the NgModule.exports of MaterialModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.
This likely means that the dependency (@angular/material/table) which declares MatTableModule has not been processed correctly by ngcc.
Image from Stackblitz:
I had read something about Ivy being an issue, and while I was scouting around the Settings area of my Stackblitz project I noticed this checkbox labelled "Ivy". Although it was unchecked, I checked it. After a refresh I still got the error. I unchecked it, and refreshed. Error gone!
这篇关于如何使用 Material Design MatTableModule 修复 stackblitz ngcc 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!