alasql: alasql.min.js:10 Uncaught Error: Please include the xlsjs library
Something wrong with the library. i try to upload a XLS files ( EXCEL 97 -2003 workbook) through http://alasql.org/demo/008file/.
It shows an error alasql.min.js:10 Uncaught Error: Please include the xlsjs library
i try to import the xlsx or xls files from cdnjs.com but it seems that it is not support.
importing CSV and XLSX are no problem but not XLS.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Fix errors From https://github.com/agershun/alasql/issues/767#issuecomment-333745431 — committed to AlaSQL/alasql-org by mathiasrw 7 years ago
@lzzattack I had the same problem.
I solved this:
import alasql from 'alasql';
import XLSX from 'xlsx';
alasql.utils.isBrowserify = false;
alasql.utils.global.XLSX = XLSX;
Sorry for being late to the party… All the angular guys, use this:-
No need to include anything in your index.html or angular.cli.json. Enjoy!
this is my code: alasql(‘SELECT * INTO XLSX(“test.xlsx”,{headers:true}) FROM ?’, [vm.areaData]) but…
this is my version: This is my way of using it oh!!I user vue-cli create project.
Btw: for excel support please use
I can confirm this solves the problem in react too
@mathiasrw The versions need to be updated in the browser demos. Here’s an updated plnkr of the 008file demo: http://plnkr.co/edit/Atqtg7RKrKbXtJ8eH6Qz?p=info