egeriis / zipcelx

Turns JSON data into `.xlsx` files in the browser
MIT License
293 stars 90 forks source link

exports is not defined #89

Closed pytdata closed 3 years ago

pytdata commented 3 years ago

Hello guyz, so I included the script tag in my code:

<script src="../zipcelx/lib/legacy.js"></script>

and also tried testing the library with this short code:

``

This is he error am getting in the console: legacy.js:1 Uncaught ReferenceError: exports is not defined

Kindly help a brother here. Thanks.

egeriis commented 3 years ago

If you plan to use the library without a build pipeline, you should use the standalone.js file

On Sun, Jul 25, 2021 at 22:29 Sampah Emmanuel @.***> wrote:

Hello guyz, so I included the script tag in my code:

and also tried testing the library with this short code:

``

This is he error am getting in the console: legacy.js:1 Uncaught ReferenceError: exports is not defined

Kindly help a brother here. Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/egeriis/zipcelx/issues/89, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENR4BIFLZ6VMLNEW3XIPLTZTJAZANCNFSM5A7HU22A .

pytdata commented 3 years ago

Thanks @egeriis. :) The error is gone but not excel file was generated.

egeriis commented 3 years ago

Difficult to help without any debugging information :) Are you seeing any errors?

pytdata commented 3 years ago

Difficult to help without any debugging information :) Are you seeing any errors?

no please no errors at all

pytdata commented 3 years ago

Hello @egeriis, everything is working just fine.

I have a base b4 encoded image, can it be used as a cell value, am trying to add image to the excel

IlyaDiallo commented 3 years ago

I have a base b4 encoded image, can it be used as a cell value, am trying to add image to the excel

No, just text or num values