384
Views
6
Comments
Solved
[MomentJS Library for Reactive and Mobile] Minified exception occurred
Question
momentmobile
Mobile icon
Forge asset by Matthias Preuter

Hi,

We are using this component in our mobile app for calendar functionality but we have this error when page is loaded:

On our mobile app we have this error:

Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.

It is related to React environment settings. Is there a way to control this setting or this is a conflict between platform and some scripts? 


Thank you


Screen Shot 2018-08-23 at 7.49.33 PM.png
2021-05-05 13-05-18
Mykola (Nick) Tkachenko
Solution

We've managed to get rid of the problem. Error message is only shows up if the web block is inside "if" statement, otherwise the error silently appears on console. 

As I see the problem is maybe not related to our code but the fact that if block (it is also a dependency from another espace) throws an exception and it is inside "if" statement it shows exception message even if no exception handler action is set up on the screen.


2024-12-17 14-32-59
Matthias Preuter
 
MVP

Do you know when this error occurs? Which action is being called?


2025-01-07 17-06-54
Paulo Cação
Champion

Hi Mykola,

The console show any error?

2024-12-17 14-32-59
Matthias Preuter
 
MVP

I don't think that this problem is caused by the momentwithlocales javascript; because this code isn't minified.

2021-05-05 13-05-18
Mykola (Nick) Tkachenko
Solution

We've managed to get rid of the problem. Error message is only shows up if the web block is inside "if" statement, otherwise the error silently appears on console. 

As I see the problem is maybe not related to our code but the fact that if block (it is also a dependency from another espace) throws an exception and it is inside "if" statement it shows exception message even if no exception handler action is set up on the screen.


2024-12-17 14-32-59
Matthias Preuter
 
MVP

Fortunately you have found a solution for this problem. The calender functionality looks good! Are you going to share it in the Forge?

Kind regards,

Matthias

2021-05-05 13-05-18
Mykola (Nick) Tkachenko

Probably not as it is part of project for a client.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.