Я использую ag-grid-enterprise
app.js
import React from 'react'
import ReactDOM from 'react-dom'
import { LicenseManager } from "ag-grid-enterprise"
LicenseManager.setLicenseKey('<enterprisekey>')
...
DataGrid.js
import { AgGridReact } from 'ag-grid-react'
import 'ag-grid-enterprise'
import React from 'react'
class DataGrid extends React.Component {
onGridReady = params => {
this.gridApi = params.api
this.gridColumnApi = params.columnApi
console.log('params', params) // ag-grid enterprise features are null E.G.(aggFuncService, clipboardService)
}
render() {
return (
// Props omitted for brevity
<AgGridReact />
)
}
}
package.json
{
"ag-grid": "18.1.1",
"ag-grid-community": "^19.1.1",
"ag-grid-enterprise": "^19.1.1",
"ag-grid-react": "18.1.0",
}
Почему функции ag-grid-react
enterprise равны нулю? Кажется, я здесь что-то не так делаю.