Uncaught (в обещании): ошибка: StaticInjectorError (AppModule) [MatCell -> CdkColumnDef] - PullRequest
0 голосов
/ 01 ноября 2018

Я использую Fuse Angular6 Material Template. И для этого конкретного кода я получаю ошибку - `` `

[
[ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[MatCell -> CdkColumnDef]: 
  StaticInjectorError(Platform: core)[MatCell -> CdkColumnDef]: 
    NullInjectorError: No provider for CdkColumnDef!
Error: StaticInjectorError(AppModule)[MatCell -> CdkColumnDef]: 
  StaticInjectorError(Platform: core)[MatCell -> CdkColumnDef]: 
    NullInjectorError: No provider for CdkColumnDef!
    at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1034)
    at resolveToken (core.js:1271)
    at tryResolveToken (core.js:1216)
    at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
    at resolveToken (core.js:1271)
    at tryResolveToken (core.js:1216)
    at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
    at resolveNgModuleDep (core.js:8161)
    at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:8849)
    at resolveNgModuleDep (core.js:8161)
    at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1034)
    at resolveToken (core.js:1271)
    at tryResolveToken (core.js:1216)
    at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
    at resolveToken (core.js:1271)
    at tryResolveToken (core.js:1216)
    at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1113)
    at resolveNgModuleDep (core.js:8161)](url)](`url`)
```

код -

app.component.html

`<table mat-table>
  <tr mat-row>
    <td mat-cell>

        <div>
          <!-- Display EwayBill Element Title -->

          <p id="neo4jframe"  *ngIf="showEwayBill">{{menuItemEWay}}</p>

          <!-- Display Neo4j Output  -->
          <br>
          <div *ngIf="showEwayBill"  id="vizEwayBill"></div>
        </div>

    </td>

  </tr>
  <br>
  <tr mat-row>
    <td mat-cell>

        <div>
          <!-- Display Collection Element Title -->
          <p id="neo4jframe" *ngIf="showCollection">{{menuItemCollection}}</p>

          <!-- Display Neo4j Output  -->
          <div *ngIf="showCollection"  id="vizCollection"></div>
        </div>

    </td>


  </tr>
</table>

` Я импортировал -

 import {MatInputModule,  MatFormFieldModule} from 
  '@angular/material';

Я также хочу знать, как вывести элементы - то есть элементы в вертикальный слой за форматом отображения. Здесь я не вставил весь код, но остальные мои div выровнены по горизонтали, а не по вертикали.

...