Hi,
I’m tring to install the spreadsheet in my Vue3JS project. I’ve copied the “dhxSpreadsheet” folder into src/assets, with both js and css files.
In the Vue component I’ve copied the code:
import * as dhx from "@/assets/dhxSpreadsheet/spreadsheet";
import "@/assets/dhxSpreadsheet/spreadsheet.css";
export default {
mounted: function() {
console.log(dhx)
this.spreadsheet = new dhx.Spreadsheet(this.$refs.container);
}
};
But on console I get this error:
Uncaught (in promise) TypeError: dhx.Spreadsheet is not a constructor
Do you have any advice?
Thanks.