You are currently mixing the two approaches of including AG Grid in your project.
You only need the following in your package.json file as these packages contain all the code you need following the AG Grid 'package' approach. The package ag-grid-enterprise
contains the Clipboard functionality without the need to register modules.
/* Package.json */
"dependencies": {
"ag-grid-enterprise": "^22.1.2",
"ag-grid-community": "^22.1.1",
"ag-grid-vue": "^22.1.1"
From the docs
It is important that you do not mix packages and modules in the same
application as this will result in AG Grid being included twice and
doubling your bundle size! All modules are scoped by either
@ag-grid-community/* or @ag-grid-enterprise/* and should not be mixed
with the standalone packages of ag-grid-community and
ag-grid-enterprise.
Modules |
Packages |
@ag-grid-community/xxxxx |
ag-grid-community |
@ag-grid-enterprise/xxxxx |
ag-grid-enterprise |
I have written about this more in this blog post.