Cannot set License Key to ExcelIO because the import is "undefined"

Posted by: andrei on 5 May 2022, 4:54 am EST

  • Posted 5 May 2022, 4:54 am EST

    As the title says, I am importing ExcelIO in my React Application just as in the tutorial

    "import ExcelIO from '@grapecity/spread-excelio';"

    ExcelIO.LicenseKey = SpreadJSKey;

    But this is the error that I get , see image attached

    I have also tried importing as
    "import * as ExcelIO from '@grapecity/spread-excelio';"
    , but this time it would say that it is read-only.

    What am I doing wrong?
  • Replied 5 May 2022, 10:41 pm EST

    Hi Andrei,

    We were unable to replicate the issue at our end. We tested importing excelio as
    import * as ExcelIO from "@grapecity/spread-excelio";
    and setting the license as
    ExcelIO.LicenseKey = sjsLicense;
    and it seems to be working fine at our end.

    You can refer to the following attached sample for reference.

    If the issue still persists for you or you have a different project structure, please share a working sample so that we can investigate it at our end and assist you accordingly.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels