IgniteUI / igniteui-angular-wrappers

Ignite UI Angular component extensions by Infragistics
http://igniteui.github.io/igniteui-angular-wrappers
MIT License
148 stars 30 forks source link

Grid export templates fail with saveAs is not defined #347

Closed IvayloG closed 2 years ago

IvayloG commented 2 years ago

Description

After upgrading the ig-ts project (igniteui-wrappers) to use a project based on an angular-cli generated one, the exporting functionality is no longer working. Instead, it is throwing an error.

Steps to reproduce

  1. Use the vNext / @latest igniteui-cli version to generate a new ig-ts / igniteui-wrappers project with export-grid, export-hierarchica-lgrid templates
  2. Serve the project and try exporting via the export buttons
  3. Error image

Result

Nothing is exported.

Expected result

Export the grid with no errors.

IvayloG commented 2 years ago

I am closing this as the issue was resolved by referencing missing resources:

<script src="http://www.igniteui.com/js/external/FileSaver.js"></script>
<script src="http://www.igniteui.com/js/external/Blob.js"></script>