Posted 15 October 2022, 4:28 am EST
When we are in the designer page and we reload the page, the following error appears: Unexpected token ‘export’
Forums Home / ActiveReports / ActiveReportsJS
Posted by: 3bieda.ln on 15 October 2022, 4:28 am EST
Posted 15 October 2022, 4:28 am EST
When we are in the designer page and we reload the page, the following error appears: Unexpected token ‘export’
Posted 16 October 2022, 7:13 pm EST
Hello,
It’s difficult to figure out the source of the error based on the description you provided. What does the “designer page” stand for?
Posted 17 October 2022, 12:15 am EST
Hello,I have an issue when trying to reload a report viewer or designer,i get error (Unexpected token ‘export’) ,remove import { Viewer } from “@grapecity/activereports-react”; and it works.
Posted 17 October 2022, 9:12 pm EST
Hello,
Which framework do you use and which version?
Could you share the code sample so that we could reproduce the problem on our end?
Posted 17 October 2022, 11:20 pm EST - Updated 17 October 2022, 11:25 pm EST
Hello ,I use Next js v9.1 as framework , node js v16.14.2 and i use v3.2 version from active report js ,
test app.zip
Posted 17 October 2022, 11:20 pm EST - Updated 17 October 2022, 11:25 pm EST
Hello ,I use Next js v9.1 as framework , node js v16.14.2 and i use v3.2 version from active report js ,
test app.zip
Posted 17 October 2022, 11:28 pm EST
Hello,
Using ActiveReportsJS with the Next.js framework requires additional steps(dynamic loading) to be done. Please review the following resources:
https://www.grapecity.com/blogs/how-to-use-javascript-reporting-tool-with-next-js
https://www.grapecity.com/activereportsjs/docs/GettingStarted/QuickStart-ARJS-Designer-Component/nextjs
https://www.grapecity.com/activereportsjs/docs/GettingStarted/QuickStart/nextjs