Report Viewer/Designer in Next.js

Posted by: bolsen on 7 May 2021, 3:19 am EST

    • Post Options:
    • Link

    Posted 7 May 2021, 3:19 am EST

    I have an issue when trying to pull a report viewer or designer. Every time i use GetStatisPages or Props i get an error Unexpected token ‘export’. Even if the other code is the bear minimum. remove import { Viewer } from “@grapecity/activereports-react”; and it works.

  • Posted 10 May 2021, 5:18 am EST

    Hello, Brett,

    I am sorry to hear that you experience problems with ActiveReportsJS.

    Could you share a minimal project that we could use to reproduce the issue you described?

  • Posted 10 May 2021, 6:51 am EST

    see attached.

  • Posted 10 May 2021, 7:04 am EST

  • Posted 10 May 2021, 7:18 am EST

    Thanks for providing the code sample.

    I think that the problem is not related to ActiveReportsJS, but rather is caused by the project configuration. I found a similar question at https://stackoverflow.com/questions/65936222/next-js-syntaxerror-unexpected-token-export and the accepted answer could help.

Need extra support?

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

Learn More

Forum Channels