jszip-utils icon indicating copy to clipboard operation
jszip-utils copied to clipboard

How to import within React?

Open dpw1 opened this issue 4 years ago • 2 comments

Hey,

Firstly thank you for the great work and for sharing it!

I have installed JsZipUtils via NPM and tried to import it like this:

import JSZipUtils from 'jszip-utils';

But the file can not be found. Also it's not mentioned in the documentation how I can import it within React.

Any tips?

Thanks!

dpw1 avatar Nov 17 '20 00:11 dpw1

Hello dpw1,

I found this in SO: https://stackoverflow.com/questions/64867651/using-jsziputils-with-npm-react-file-cant-be-imported

jasonbakker084 avatar Jan 14 '21 12:01 jasonbakker084

Hello,

Thank you for the reply!

I was actually the one who created that question and the one who answered it as well hahah but thank you for reaching out!

Kind regards, Diego

On Thu, Jan 14, 2021, 09:42 Jason Bakker [email protected] wrote:

Hello dpw1,

I found this in SO:

https://stackoverflow.com/questions/64867651/using-jsziputils-with-npm-react-file-cant-be-imported

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Stuk/jszip-utils/issues/29#issuecomment-760172379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6UQSOVZZTBQVK236VMMHTSZ3RE5ANCNFSM4TX4FHHA .

dpw1 avatar Jan 14 '21 12:01 dpw1