Skip to content
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

jszip is not a constructor #182

Open
Jude214 opened this issue Apr 25, 2023 · 1 comment
Open

jszip is not a constructor #182

Jude214 opened this issue Apr 25, 2023 · 1 comment

Comments

@Jude214
Copy link

Jude214 commented Apr 25, 2023

on version 0.8.13,the brower reports such an error when export a file:
image

this is caused by code in xlsx.js:
image

we need to replace the code above with this:
if(typeof jszip === 'undefined') jszip = require('./jszip.js');

@iyu98
Copy link

iyu98 commented Sep 11, 2024

const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
 
module.exports = defineConfig({
  configureWebpack: {
    plugins: [
        new NodePolyfillPlugin()
      ]
    }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants