How to fix stackblitz ngcc error with Material Design MatTableModule?
Asked Answered
S

1

1

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/[email protected]/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:

enter image description here

Stevenson answered 17/6, 2020 at 0:45 Comment(0)
S
7

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!

enter image description here

Stevenson answered 17/6, 2020 at 0:45 Comment(1)
For me, it was checked. As soon as I unchecked it. it worked. Thanks.Midwife

© 2022 - 2024 — McMap. All rights reserved.