Page 1 of 2

Error handling? No message in browser console

Posted: Wed Apr 05, 2023 4:27 pm
by grbspltt
I am loading a report from a string into the designer in the browser. Everything works perfectly in development on localhost. When I deploy to production the same exact report loads into the designer and the designer shows a window with an unhelpful message "Error!" with nothing in the console. Is there a way to add error handling to capture the error or somehow display more information about an error? Like I said it works perfectly on local so I'm not sure if a sample project would be helpful.

Re: Error handling? No message in browser console

Posted: Wed Apr 05, 2023 4:42 pm
by Lech Kulikowski
Hello,

Please send us your report for analysis.
Also, please try to check the browser console.

Thank you.

Re: Error handling? No message in browser console

Posted: Wed Apr 05, 2023 5:41 pm
by grbspltt
There is no message in browser console. I attached the project. Be aware that it works perfectly on local.

Re: Error handling? No message in browser console

Posted: Fri Apr 07, 2023 10:37 am
by Lech Kulikowski
Hello,

We apologize for the delay, but we need some extra time to investigate the issue thoroughly. We will keep you informed about the result as soon as possible.

Thank you for your patience.

Re: Error handling? No message in browser console

Posted: Fri Apr 07, 2023 4:21 pm
by grbspltt
I appreciate your efforts. Thank you.

Re: Error handling? No message in browser console

Posted: Wed Apr 12, 2023 4:20 pm
by grbspltt
Any updates? I published the demo to a host for your pleasure. http://stim-report-demo.surge.sh/

Re: Error handling? No message in browser console

Posted: Thu Apr 13, 2023 9:06 pm
by Lech Kulikowski
Hello,

We apologize for the delay, but we couldn't run sent project.
Please check your report on our sample and let us know about the result:
https://github.com/stimulsoft/Samples-J ... ster/React

Thank you.

Re: Error handling? No message in browser console

Posted: Thu Apr 13, 2023 9:14 pm
by grbspltt
Anything in particular you couldn't run? I installed and tested and ran fine on my end before I sent to you. The link you sent shows a bump in version number. Is there anything in the version update that would address my issue? Is there any way to add error handling to the designer?

Re: Error handling? No message in browser console

Posted: Thu Apr 13, 2023 11:39 pm
by grbspltt
The updated version of your report library has no effect on the production deployment. Still works perfectly on local. Would be easier to fix if there was a way to add error handling to the designer over the "Error!" message.

Re: Error handling? No message in browser console

Posted: Fri Apr 14, 2023 11:51 am
by Lech Kulikowski
Hello,

Please try to change the package.json file:

Code: Select all

"browserslist": {
    "production": [
      "> 1% and not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
Thank you.