224
Views
6
Comments
Solved
[MomentMobile] Minified exception occurred
Question
Forge component by Matthias Preuter
3
Published on 05 Feb 2020

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

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.


mvp_badge
MVP
Rank: #30

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


Rank: #223

Hi Mykola,

The console show any error?

mvp_badge
MVP
Rank: #30

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

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.


mvp_badge
MVP
Rank: #30

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

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