Posted 15 October 2022, 1:28 pm 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, 1:28 pm EST
Posted 15 October 2022, 1:28 pm EST
When we are in the designer page and we reload the page, the following error appears: Unexpected token ‘export’
Posted 17 October 2022, 4:13 am 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, 9: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 18 October 2022, 6:12 am 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 18 October 2022, 8:20 am EST - Updated 18 October 2022, 8:25 am 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 18 October 2022, 8:20 am EST - Updated 18 October 2022, 8:25 am 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 18 October 2022, 8:28 am 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