Error while using ActiveReportsJS API

Posted by: vinay.kumard on 11 September 2024, 5:29 am EST

    • Post Options:
    • Link

    Posted 11 September 2024, 5:29 am EST - Updated 11 September 2024, 5:34 am EST

    Hi Team,

    I am trying to do a POC with ActiveReportsJS API by following the steps mentioned in https://developer.mescius.com/activereportsjs/docs/GettingStarted/Api. But when I try to run the application I am getting below attached error. Could you please let me know if I am missing anything here. Thanks in advance.

  • Posted 12 September 2024, 2:48 am EST

    Hi Vinay,

    It seems like you are creating the React application using “create-react-app” and not with Next.js or Vite frameworks with v5.0.

    The ‘create-react-app’ has been deprecated by the React team, and therefore it contains older configuration, which refers to old React scripts. You can refer to the legacy react documentation for the ‘create-react-app’ here: Create a New React App

    In the latest documentation from the React team, they have suggested using one of their provided frameworks, which you can check here: Start a New React Project

    Using a suggested framework with React overrides the older React config and includes the latest React script, which will also fix the error.

    We support NextJS and Vite with React. You can follow the steps from our documentation to create your React app here:

    We hope this helps! If the issue persists at your end, please provide us with a stripped-down and runnable sample replicating the issue so that we can investigate the same at our end and get back to you accordingly.

  • Posted 12 September 2024, 3:47 am EST - Updated 12 September 2024, 7:50 am EST

    Hi Katyayny,

    Thank you for getting back to me. I have created the sample app with the next.js but still getting run time error. I’ve attached the error screenshot for you to look over. I am not facing any issues while implementing Report Viewer or Designer. I am trying to use the API to implement the following functionality, user should have a link/button and when the user clicks, PDF should get downloaded. For this from your documentation, I found that we need to use ActiveReportsJS API. Which does not seem to work. Please let me know if I am missing anything here. I have also attached the sample code zip.

    activereportsjs-poc.zip

  • Posted 13 September 2024, 2:22 am EST

    Hi Vinay,

    Firstly, we apologize for the inconvenience caused to you!

    We could replicate this issue at our end as well and have escalated the same to our development team [ARJ-6238]. We will get back to you as soon as we receive any updates from their side.

    We appreciate your patience and cooperation in the meantime!

  • Posted 13 September 2024, 6:02 am EST

    Hi Vinay,

    We have updated our documentation page: https://developer.mescius.com/activereportsjs/docs/GettingStarted/Api

    This should resolve your issue!

Need extra support?

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

Learn More

Forum Channels