Excel-builder complied pack is having multiple definition for setPageOrientation

Hello Team,

I’m using excel builder for the 2.0.3 in a angular JS application, and referencing “excel-builder.compiled.js” for the export to excel functionality.

Problem is, when above file is used, it throwing an error saying multiple definitions are not allowed in strict mode. I digged in and verified, unfortunately we have multiple definition for “setPageOrientation” method. Please find the below link to verify.
https://cdnjs.cloudflare.com/ajax/libs/excel-builder/2.0.3/excel-builder.compiled.js

And also throwing other issues like, “delete define;” not allowed in strict mode.

Please help me in resolving this issue.

Regards,
Shivaraj Hiremath

Hi @greatshivu :wave:

This is not a problem with cdnjs but with the library itself, you should contact the library owner.
I did some searching and found that there already is a PR with the fix for this issue: https://github.com/stephenliberty/excel-builder.js/pull/98

But it seems that the library isn’t maintained anymore.

1 Like

Thank you… :slight_smile: