Author Topic: JSZip is not a constructor  (Read 27 times)

[email protected]

  • Newbie
  • *
  • Posts: 1
    • View Profile
JSZip is not a constructor
« on: September 14, 2021, 03:42:30 am »
I am evaluating your product and when importing an xlsx I get the following error: "JSZip is not a constructor"

I have  include: <script type="text/javascript" src="http://localhost/intraweb/templates/inima/js/paramquery/jsZip-2.5.0/jsZip.min.js" ></script>   

In html i have this script:
   function fImport() {
      pq.grid( "#grid_json_design").showLoading()
       pq.excel.importXl( {url: '../../pro2/Content/workbook.xlsx'}, function( wb ){
         pq.grid.importWb({ workbook: wb, extraRows: 10, extraCols: 10 });
         pq.grid( "#grid_json_design").hideLoading();

where is the problem?



  • Administrator
  • Hero Member
  • *****
  • Posts: 5182
    • View Profile
Re: JSZip is not a constructor
« Reply #1 on: September 14, 2021, 11:04:49 am »
jszip url may be incorrect or you may have added other version of jszip before including v2.5.0 of jszip in your code.

Please share a jsfiddle or a stackblitz if you still need help in locating the cause of error.