-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excel import is not working #30
Comments
+1 |
Same issue here. Been using older version for a while now successfully, but had to download a new version for a new ubuntu server and the array is always empty. (regardless of spreadsheet used). |
There is one excelParser.js in root.Use that file and install respective dependencies. It worked for me. |
Everything is working fine on my mac, but on the ubuntu server the results are always empty. Anyone else have this? |
@robinvanb Has it ever worked for you on Ubuntu? Is this a new problem for you? |
@trevordixon This was my first time deploying it to Ubuntu, are you suggesting it doesn't work on Ubuntu? |
I would think it would work on Ubuntu, but I don't think I've ever tried. I'd be very surprised if it's never worked on Ubuntu, but I can't be sure it hasn't. |
The only way I could get it working on Ubuntu was to remove the dependencies and reload them afresh (but sorry I forget the exact details) |
Ubuntu (gnome): 15.04 var excel = require("excel");
excel('/path/to.xlsx', function(err, res) {
// todo something with err and res
}); Uncaught exception: /home/ubuntu/source-module/node_modules/excel/node_modules/node-promise/promise.js:147
throw new Error("This deferred has already been resolved"); |
+1 Getting an empty array |
same issue here. working fine on my mac but not working on ubuntu server. any fixes? |
Double check your nodejs version. Works fine with me with 0.12 and 4.x, but not with 0.10 (default with some ubuntu installations). |
Getting empty return [ ] on Windows with Node (tried v4 and v6). Put in a little bit of debug logging into extractData() and can see that it is throwing this error:
|
I can testify to this as well. Using this module on my Mac works fine, but on Ubuntu it produces an empty array. |
@anthonyjesmok @timtribers Thanks for looking into it! Out of curiosity, do you know about https://github.com/SheetJS/js-xlsx? If so, why use excel.js instead of that? I haven't worked on this in a long time, and I wonder if I should just point people to that other option, or if there's something compelling about excel.js that I should make more clear or enhance. |
Thanks for responding @trevordixon it is great to hear from you and respond to these issues. I will take a look into js-xlsx and see if that fits my needs. |
var parseXlsx = require('excel');
file = __dirname + '/test/spreadsheets/' + file;
parseXlsx(file, function(err, data) {
console.log(file);
console.log(data);
});
The text was updated successfully, but these errors were encountered: