Report Viewer/Designer in Next.js

Posted by: bolsen on 6 May 2021, 6:19 pm EST

    • Post Options:
    • Link

    Posted 6 May 2021, 6:19 pm 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 9 May 2021, 8:18 pm 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 9 May 2021, 9:51 pm EST

    see attached.

  • Posted 9 May 2021, 10:04 pm EST

  • Posted 9 May 2021, 10:18 pm 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