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

Posted by: andrei on 5 May 2022, 1:54 pm EST

  • Posted 5 May 2022, 1:54 pm EST - Updated 3 October 2022, 9:18 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’;”

    
    
    What am I doing wrong?
  • Posted 6 May 2022, 7:41 am 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;

    
    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.
    
    Regards
    Ankit
    
    [zip filename="react.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-ae72f20f-75ff-4e11-922d-f6a6f50fd49e.zip[/zip]
Need extra support?

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

Learn More

Forum Channels