我尝试在我的应用程序中使用 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",
(y además incorporo) 并且还合并了
"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)
这可能会发生吗?
我做错了什么?
最佳答案
解决了!!!
Ag-grid 软件包将是 13.3.1 作为 ag-grid-enterprise 版本软件包。
问候
关于javascript - ag-grid-enterprise 在 Angular 上使用它的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46632904/