-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot read properties of undefined (reading 'call') #196
Comments
What’s the structure of the data which are passed to the library? Would be great to have small snippet of code which reproduce the problem. |
import XlsxTemplate from "xlsx-template"; error line: const template = new XlsxTemplate(data, option); |
It would be hard for me to guess what exactly happens. Can you show shape of the |
As soon as I opened the relevant page, the console reported an error. I haven't clicked the export button yet |
I added console.log and found that the exportXlsx method did not enter, but it just reported an error |
import XlsxTemplate from "xlsx-template";
const template = new XlsxTemplate(data);
TypeError: Cannot read properties of undefined (reading 'call')
at new Queue (index.js:12:16)
at node_modules/.pnpm/[email protected]/node_modules/image-size/dist/index.js (index.js:13:15)
at __require2 (chunk-LK32TJAX.js?v=6aff3c6a:18:50)
at node_modules/.pnpm/[email protected]/node_modules/xlsx-template/lib/index.js (index.js:7:14)
at __require2 (chunk-LK32TJAX.js?v=6aff3c6a:18:50)
at index.js:1610:18
The text was updated successfully, but these errors were encountered: