FileSaver.min.js Error?

Stimulsoft Reports.JS discussion
Post Reply
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

FileSaver.min.js Error?

Post by BCS »

We are using another JS library from Grape City (spread.js) for Spreadsheet purposes, it looks like they have a dependency that is conflicting with Stimulsoft JS. The one in question seems to be https://www.npmjs.com/package/file-saver or FileSaver.js. This issue arose when I upgraded from 20.1.1 to 20.2.2, the issue is also in 20.2.3. I only replaced stimulsoft.reports.js and stimulsoft.viewer.js, I am using the Vue environment. I am loading the stimulsoft libraries same as the example in github, thru a script tag in index.html. The grape city libraries are loaded via node modules bundle (app.js). It does appear the file-saver 2.0.2 has been in consistent use for quite sometime by spread.js, however just the act of replacing 20.1.1 with 20.2.2 triggered this error and makes my ENTIRE app not work at all, it is fatal. I don't know if you need this https://www.grapecity.com/spreadjs to reproduce it but a demo app is out of the question, its just too large to scale down plus licensing issues with the other product.

When I remove the imports to file-saver such as:
import { saveAs } from 'file-saver';

The app works properly and nothing is fatal. The problem is this is required by spread.js it appears for exporting spreadsheets

Here is some documentation from their product:

https://www.grapecity.com/spreadjs/docs ... e-saver%2C
Attachments
Screen Shot 2020-05-27 at 3.48.03 PM.png
Screen Shot 2020-05-27 at 3.48.03 PM.png (96.72 KiB) Viewed 1256 times
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: FileSaver.min.js Error?

Post by Lech Kulikowski »

Hello,

That issue was fixed. The fix will be available in the next build within two weeks.

Thank you.
BCS
Posts: 83
Joined: Thu Nov 17, 2016 5:47 am

Re: FileSaver.min.js Error?

Post by BCS »

Okay thank you for the swift response! :D
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: FileSaver.min.js Error?

Post by Lech Kulikowski »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply