aureliaslickgridaurelia-slickgrid

Slickgrid excel-export service not assignable to "External Recourses" in grid options in Aurelia


After reading the How To Guide for adding the excel-export option in aurelia-slickgrid after versions 3.0.0, I have this error in registerExternalResources: []: enter image description here

Also I imported and initialized it as it follows:

import { ExcelExportService } from "@slickgrid-universal/excel-export";
this.excelExportService = new ExcelExportService();

The version of aurelia-slickgrid that I am using is

3.12.1

And I have the grid options enabling the excel export.

Any suggestions why this happens?


Solution

  • You first need to make sure that you did install the Excel Export package since that one is optional. Also you need to make sure you're using the correct version of Slickgrid-Universal package(s), I create this table - wiki to show which versions are compatible with each other. If you're on Aurelia-Slickgrid 3.x then your Slickgrid-Universal package(s) versions needs to be version 0.19.2, if you use a different version it will throw a bunch of interface errors like you currently have... in other words, each Aurelia-Slickgrid version are very specific to only 1 version of Slickgrid-Universal which is why I created that table - wiki

    Also worth to know that each breaking change version have their migration guide to follow, it is also very important that you follow them in order when upgrading. For example Migration Guide to 3.x is the one you should follow in your case