【问题标题】:ag-grid @version v17.1.1 Cannot read property 'create' of undefinedag-grid @version v17.1.1 无法读取未定义的属性“创建”
【发布时间】:2020-08-31 21:44:45
【问题描述】:

我正在使用 ag grid 17.0.1 版本,它在本地开发中运行良好。但是在产品构建之后,我正在我的 uat 环境中进行测试。我正进入(状态 - 无法读取未定义的属性“创建” 添加源映射后我调试代码。 gridCore.js 抛出错误。它甚至没有在 UI 中渲染我的网格。 我知道 dev 和 prod build 是不同的。 prod 构建后发生了什么变化,为什么它在 dev 而不是 prod 中工作。

var GridCore = (function () {
    function GridCore(loggerFactory) {
        this.destroyFunctions = [];
        this.logger = loggerFactory.create('GridCore'); // loggerFactory is undefined which is causing the problem 
    }

【问题讨论】:

  • 你的 Angular 版本是什么?
  • Angular 版本是 8.2.13

标签: angular ag-grid ag-grid-react


【解决方案1】:

即使我遇到了这个问题,根据 Ag-Grid 兼容性图表,对于 Angular 版本 7-9+,Ag-Grid 版本应该在 18-23 之间。

来源:https://www.ag-grid.com/angular-grid/#compatibility

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-03
    • 2019-07-11
    • 1970-01-01
    • 2020-10-15
    • 2020-05-28
    • 2021-09-13
    相关资源
    最近更新 更多