saveAs in Meteor demo causes an error "Exception in delivering result of invoking 'download': " #751
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#751
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While testing with Firefox browser v54.0.1, in the meteor demo on line 39 of client/main.js 🔗 the saveAs call is causing an error, because it seems to be undefined.
If I add to file
package.json
dependencies:"file-saver": "1.3.3"
and add somewhere near to the top of the file
main.js
:const FILESAVER = require('file-saver');
then change at line 39 of
main.js
from:
saveAs(
to:
FILESAVER.saveAs(...
The errors go away and the file save as dialog appears as expected.
The Makefile for the demo installs the
pfafman:filesaver
wrapper. Can you try the following steps from a fresh clone of the repo and see if you still see the error:Not too familiar with meteor, but assumably
meteor add
performs some magic.Those lines probably should be mentioned in the README (PR welcome :)