【问题标题】:AgGrid Enterprise not validatingAgGrid Enterprise 未验证
【发布时间】:2018-12-04 04:11:21
【问题描述】:
import * as agGrid from "ag-grid-enterprise";
agGrid.LicenseManager.setLicenseKey("license_key");

我的 index.js 文件中有以下代码,但我不断收到以下错误:

main.js?c69b:114Uncaught TypeError: main_1.Grid.setEnterpriseComponents is not a function

我为 ag-grid 和 ag-grid-enterprise 使用 18.0.1。有谁知道如何解决这个问题?

【问题讨论】:

    标签: javascript reactjs ag-grid ag-grid-react


    【解决方案1】:

    不确定您是否仍在寻找这个问题的答案,但这是我必须解决的问题:

    import * as agGridEnterprise from 'ag-grid-enterprise';
    agGridEnterprise.LicenseManager.setLicenseKey("your key");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多