ag-grid-entreprise问题在角度上使用它

时间:2017-10-08 15:38:57

标签: javascript angular2-routing ag-grid

我正在尝试在我的应用程序中使用ag-grid-enterprise,但我不能。

使用angular,在app.module.ts中我有以下内容:

import { AgGridModule } from "ag-grid-angular/main";

并合并

import "ag-grid-enterprise/main";
在package.json中的

我有

"ag-grid-angular": "^8.2.0",

(yademásinorporo) 并且还包含

"ag-grid-angular-enterprise": "^13.0.0",

没有设置许可证或设置它,编译我没有问题,但应用程序没有加载,它给我以下错误:

excelCreator.js:8 Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at setPrototypeOf (<anonymous>)
    at __extends (excelCreator.js:8)
    at excelCreator.js:204
    at Object.setPrototypeOf.__proto__ (excelCreator.js:279)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)
    at Object.setPrototypeOf.__proto__ (main.js:24)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)
    at Object.defineProperty.value (main.js:1)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)
    at Object.602 (app.component.ts:10)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)
    at Object.582 (main.bundle.js:9123)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)
    at Object.1132 (main.bundle.js:21)
    at __webpack_require__ (bootstrap 1e9ae7b3a7a54d7fb70d:52)

那可能会发生什么?

我做错了什么?

1 个答案:

答案 0 :(得分:0)

解决了!!!

Ag-grid包将是13.3.1作为ag-grid-enterprise版本包。

此致