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

Only for Node? #6

Open
aurelien-boubennec opened this issue Sep 4, 2024 · 1 comment
Open

Only for Node? #6

aurelien-boubennec opened this issue Sep 4, 2024 · 1 comment

Comments

@aurelien-boubennec
Copy link

Hi,

I am getting the following error when writing a BCF to a buffer:

Error: nodebuffer is not supported by this platform
at a.checkSupport (jszip.min.js:13:34660)
at new f (jszip.min.js:13:27424)
at n.generateInternalStream (jszip.min.js:13:17366)
at n.generateAsync (jszip.min.js:13:17444)
at exportZip (BcfWriter.ts:78:22)
at BcfWriter.write (BcfWriter.ts:30:26)
at ExportToBcf (BcfFunctions.ts:46:37)
at onClick (ExportPage.tsx:26:27)

Does that mean it won't work in the browser?
Thanks

@harrycollin
Copy link
Contributor

The error appears to be related to jszip. This is supported in the browser however for some reason it's trying to use Buffer which is Node only. Can you give more details about your environment & bundler?

This issue on JSZip looks similar: Stuk/jszip#821

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