node_modules / ag-grid / main“'没有导出的成员'IHeaderGroup'

时间:2017-07-26 10:31:03

标签: angular ag-grid ag-grid-ng2

我很安静的角4&试图从这里使用ag-grid https://www.ag-grid.com/ag-grid-angular-angularcli/#gsc.tab=0

我一直收到如下错误,但找不到任何有用的链接:

  

node_modules / ag-grid-angular / dist / interfaces.d.ts(1,10):模块   '“C:/使用rs / shm / A4 / first-app / node_modules / ag-grid / main”'没有   导出成员'IHeaderGroup'。

     

node_modules / ag-grid-angular / dist / interfaces.d.ts(1,24):模块   '“C:/使用rs / shm / A4 / first-app / node_modules / ag-grid / main”'没有   导出成员'IHeaderGroupParams'。

     

ag-grid-angular / dist / interfaces.d.ts(1,44):模块'“C:/使用   rs / shm / A4 / first-app / node_modules / ag-grid / main“'没有导出的成员   'IHeader'。

//app.module.ts
import {AgGridModule} from 'ag-grid-angular';
import { RedComponentComponent } from './red-component/red-component.component';
import { MyAgGridComponent } from './my-ag-grid/my-ag-grid.component';

        @NgModule({
          declarations: [
            AppComponent,
            SpinnerComponent,
            RedComponentComponent,
            MyAgGridComponent,
          ],
          imports: [
            BrowserModule,
            HttpClientModule, HttpModule,
            FormsModule,
            BrowserAnimationsModule,
            MdButtonModule,
            MdProgressSpinnerModule,
            MdInputModule,
            AgGridModule.withComponents([RedComponentComponent]),
          ],
          exports: [SpinnerComponent],
          providers: [],
          bootstrap: [AppComponent]
        })
        export class AppModule {}

的package.json

"ag-grid-angular": "^12.0.0",
    "ag-grid-ng2": "^8.0.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.1.0",

任何人都可以帮我找到解决方案吗?

1 个答案:

答案 0 :(得分:0)

我可以看到你所拥有的两个问题:

  • 使用Sub C_FormattingWTitle_Step3_do_on_each_tab() 'Delete all blank empty rows Dim FirstBlankCell As Long, rngFound As Range With ActiveSheet Set rngFound = .Columns("G:G").Find("*", After:=.Range("G1"), searchdirection:=xlPrevious, LookIn:=xlValues) If Not rngFound Is Nothing Then FirstBlankCell = rngFound.Row End With If ActiveCell.SpecialCells(xlLastCell) <> rngFound Then Selection.SpecialCells(xlCellTypeBlanks).Select ActiveWindow.SmallScroll Down:=9 Selection.EntireRow.Delete Else Range("A1").Select End If 'Remove all not 260563 or header in SiteID column Dim LR As Long, i As Long LR = Range("G" & Rows.Count).End(xlUp).Row For i = LR To 2 Step -1 If Not (Range("G" & i).Value Like "260563") And Not (Range("G" & i).Value Like "SiteID") Then Rows(i).Delete Next i 'Remove all False values and header in Sign in Success column Dim FR As Long, p As Long FR = Range("F" & Rows.Count).End(xlUp).Row For p = FR To 2 Step -1 If Not (Range("F" & p).Value Like True) And Not (Range("F" & p).Value Like "SignInSuccess") Then Rows(p).Delete Next p 'Remove shading and formatting from header row Rows("1:1").Select With Selection.Interior .Pattern = xlNone .TintAndShade = 0 .PatternTintAndShade = 0 End With 'Format date/time Columns("A:A").Select Selection.NumberFormat = "m/d/yyyy hh:mm:ss;@" ag-grid-angularag-grid-ng2是继续使用的依赖项,它取代ag-grid-angular
  • 您需要按如下方式导入:

ag-grid-ng2